summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-07 02:02:57 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-07 02:02:57 (GMT)
commit027cd0c69631be8a0d8ca899daedc7898488dd2e (patch)
tree6f23e885e57a796a5380ce09a712a1d4bbd3dca3
parentd055200c95f6422bd95dbf6384c251346ffa3697 (diff)
Use boost from deploy location for Mac
-rw-r--r--tests/CMakeLists.txt4
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)
contact: Jan Huwald // Impressum