summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db4e6e4)
raw | patch | inline | side by side (parent: db4e6e4)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 30 Mar 2008 19:17:06 +0000 (19:17 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 30 Mar 2008 19:17:06 +0000 (19:17 +0000) |
CMakeScripts/FindBoost.cmake | patch | blob | history |
index e743d3310701a1b21507ab80eb6f36b87065ed37..99ebf81dc150af9cde96873dcc05771b84aaf1ff 100644 (file)
# - Find Boost libraries
# Go hunting for boost compoments
# Defines:
-# BOOST_INCLUDE
+# BOOST_INCLUDE_DIR
# To find boost on Windows, use BOOST_PATH variable set by mingwenv.bat:
env_boost_path )
-IF(MINGW)
- SET (BOOST_ROOT env_boost_path)
- FIND_LIBRARY( BOOST_PYTHON_LIBRARY
- libboost_python-mgw
- PATHS ${BOOST_ROOT}\\lib )
- FIND_LIBRARY( BOOST_PYTHON_LIBRARY_DEBUG
- libboost_python-mgw-d
- PATHS ${BOOST_ROOT}\\lib )
-ELSE(MINGW)
- FIND_LIBRARY( BOOST_PYTHON_LIBRARY NAMES boost_python
- PATHS /usr/lib /usr/local/lib ${BOOST_ROOT}\\lib )
- FIND_LIBRARY( BOOST_PYTHON_LIBRARY_DEBUG NAMES boost_python-d
- PATHS /usr/lib /usr/local/lib ${BOOST_ROOT}\\lib )
-ENDIF(MINGW)
-
IF (BOOST_INCLUDE_DIR)
SET(BOOST_FOUND TRUE)
ENDIF (BOOST_INCLUDE_DIR)
IF (BOOST_FOUND)
- IF (NOT Boost_FIND_QUIETLY)
MESSAGE(STATUS "Found Boost: ${BOOST_INCLUDE_DIR}")
- ENDIF (NOT Boost_FIND_QUIETLY)
ELSE(BOOST_FOUND)
- IF (Boost_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find Boost")
- ENDIF (Boost_FIND_REQUIRED)
ENDIF (BOOST_FOUND)