Only try to find PythonLibs if Boost.Python was found

This commit is contained in:
Damien Dupuis 2010-04-06 07:42:46 +00:00
parent 40ab09bea6
commit 6e85d89d19
1 changed files with 1 additions and 1 deletions

View File

@ -3,11 +3,11 @@ SET(Boost_USE_MULTITHREADED ON)
FIND_PACKAGE(Boost 1.32.0 COMPONENTS python)
IF (Boost_FOUND)
MESSAGE(STATUS "Found Boost.Python libraries in ${Boost_INCLUDE_DIR} as ${Boost_LIBRARIES}")
FIND_PACKAGE(PythonLibs REQUIRED)
ELSE (Boost_FOUND)
MESSAGE(STATUS "Boost.Python libraries were not found")
ENDIF (Boost_FOUND)
FIND_PACKAGE(PythonLibs REQUIRED)
INCLUDE_DIRECTORIES(${IO_SOURCE_DIR}/dtr/src ${LIBXML2_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_PATH})