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 b30aa5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions FindBroker.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ 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 b30aa5d

Please sign in to comment.