Skip to content

Commit

Permalink
Support pointing BROKER_ROOT_DIR at build tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Gras committed May 10, 2024
1 parent 925c32d commit a2ad940
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions FindBroker.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ if (NOT BROKER_ROOT_DIR)
find_path(BROKER_ROOT_DIR NAMES include/broker/broker.hh)
set(header_hints "${BROKER_ROOT_DIR}/include")
else ()
set(header_hints "${BROKER_ROOT_DIR}/include" "${BROKER_ROOT_DIR}/../include"
"${BROKER_ROOT_DIR}/../../include")
set(header_hints
"${BROKER_ROOT_DIR}/include"
"${BROKER_ROOT_DIR}/../include"
"${BROKER_ROOT_DIR}/../../include"
"${BROKER_ROOT_DIR}/libbroker"
"${BROKER_ROOT_DIR}/../libbroker"
"${BROKER_ROOT_DIR}/../../libbroker")
endif ()

find_library(BROKER_LIBRARY NAMES broker HINTS ${BROKER_ROOT_DIR}/lib)
Expand Down

0 comments on commit a2ad940

Please sign in to comment.