From a7c884e1e6887444e52376ad48d961c36965d53f Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 30 Mar 2008 19:27:10 +0000 Subject: Final fix to boost finding on windows for cmake (bzr r5256) --- CMakeScripts/FindBoost.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'CMakeScripts') diff --git a/CMakeScripts/FindBoost.cmake b/CMakeScripts/FindBoost.cmake index 99ebf81dc..ba6778ec2 100644 --- a/CMakeScripts/FindBoost.cmake +++ b/CMakeScripts/FindBoost.cmake @@ -4,13 +4,12 @@ # BOOST_INCLUDE_DIR -# To find boost on Windows, use BOOST_PATH variable set by mingwenv.bat: -SET(env_boost_path "$ENV{BOOST_PATH}") +# To find boost on Windows, use DEVLIBS_PATH variable set by mingwenv.bat FIND_PATH(BOOST_INCLUDE_DIR boost/weak_ptr.hpp /usr/include /usr/local/include - env_boost_path ) + $ENV{DEVLIBS_PATH}//include ) IF (BOOST_INCLUDE_DIR) @@ -18,9 +17,9 @@ IF (BOOST_INCLUDE_DIR) ENDIF (BOOST_INCLUDE_DIR) IF (BOOST_FOUND) - MESSAGE(STATUS "Found Boost: ${BOOST_INCLUDE_DIR}") + MESSAGE(STATUS "boost: FOUND ( ${BOOST_INCLUDE_DIR} )") ELSE(BOOST_FOUND) - MESSAGE(FATAL_ERROR "Could not find Boost") + MESSAGE(FATAL_ERROR "boost: NOT FOUND") ENDIF (BOOST_FOUND) -- cgit v1.2.3