Code

Final fix to boost finding on windows for cmake
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 30 Mar 2008 19:27:10 +0000 (19:27 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 30 Mar 2008 19:27:10 +0000 (19:27 +0000)
CMakeScripts/FindBoost.cmake
mingwenv.bat

index 99ebf81dc150af9cde96873dcc05771b84aaf1ff..ba6778ec2b0d937e9bca0104f326cd1f6a01feed 100644 (file)
@@ -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)
 
 
index 605e3a257caf7f2f1d9e723ac1400acc57035ade..b0c5976dddecefb458957c7e781d45d5733be766 100755 (executable)
@@ -4,5 +4,5 @@ set CMAKE_BIN=c:\cmake\bin
 set GTK=c:/devlibs
 set GTKDOS=c:\devlibs
 set PKG_CONFIG_PATH=c:/devlibs/lib/pkgconfig
-set BOOST_PATH=c:/devlibs/boost
+set DEVLIBS_PATH=c:/devlibs
 set PATH=%MINGW_BIN%;%CMAKE_BIN%;%GTKDOS%\bin;%PATH%