diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-07 02:02:57 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-07 02:02:57 (GMT) |
commit | 027cd0c69631be8a0d8ca899daedc7898488dd2e (patch) | |
tree | 6f23e885e57a796a5380ce09a712a1d4bbd3dca3 | |
parent | d055200c95f6422bd95dbf6384c251346ffa3697 (diff) |
Use boost from deploy location for Mac
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 03f0cc9..d351582 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -67,6 +67,10 @@ endif() # usually it's found automatically, but some systems may need a custom install. # in that case, run cmake with -DBOOST_ROOT=/path/to/boost/install # (being the same path you passed to boost's --prefix when you built it) +if (NOT $ENV{MACOSX_DEPLOY_DIR} STREQUAL "") + set(BOOST_ROOT "$ENV{MACOSX_DEPLOY_DIR}") +endif() + if(BOOST_ROOT) #set(Boost_DEBUG TRUE) set(Boost_NO_SYSTEM_PATHS TRUE) |