From 027cd0c69631be8a0d8ca899daedc7898488dd2e Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Mon, 7 Nov 2011 03:02:57 +0100 Subject: Use boost from deploy location for Mac 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) -- cgit v0.10.1