Commit 594822f1 authored by Christopher Bruns's avatar Christopher Bruns
Browse files

Tweak order of brook path and program searches, so BROOKROOT takes precedence

parent 0f839691
...@@ -12,12 +12,16 @@ ...@@ -12,12 +12,16 @@
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
FIND_PATH(BROOK_INCLUDE_DIR brook/brook.hpp $ENV{BROOKROOT}/sdk/include) # Call find twice, so BROOKROOT takes precedence, but system path is a fallback
FIND_PATH(BROOK_INCLUDE_DIR brook/brook.hpp $ENV{BROOKROOT}/sdk/include NO_DEFAULT_PATH)
FIND_PATH(BROOK_INCLUDE_DIR brook/brook.hpp)
SET(BROOK_CXXFLAGS "-I${BROOK_INCLUDE_DIR}") SET(BROOK_CXXFLAGS "-I${BROOK_INCLUDE_DIR}")
SET(BROOK_CFLAGS "${BROOK_CXXFLAGS}") SET(BROOK_CFLAGS "${BROOK_CXXFLAGS}")
FIND_PROGRAM(BROOK_CC brcc $ENV{BROOKROOT}/sdk/bin) # Call find twice, so BROOKROOT takes precedence, but system path is a fallback
FIND_PROGRAM(BROOK_CC brcc $ENV{BROOKROOT}/sdk/bin NO_DEFAULT_PATH)
FIND_PROGRAM(BROOK_CC brcc)
# Search for all libraries # Search for all libraries
# - both BASE and RUNTIME TARGETS # - both BASE and RUNTIME TARGETS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment