Only try to find PythonLibs if Boost.Python was found
This commit is contained in:
parent
40ab09bea6
commit
6e85d89d19
|
@ -3,11 +3,11 @@ SET(Boost_USE_MULTITHREADED ON)
|
||||||
FIND_PACKAGE(Boost 1.32.0 COMPONENTS python)
|
FIND_PACKAGE(Boost 1.32.0 COMPONENTS python)
|
||||||
IF (Boost_FOUND)
|
IF (Boost_FOUND)
|
||||||
MESSAGE(STATUS "Found Boost.Python libraries in ${Boost_INCLUDE_DIR} as ${Boost_LIBRARIES}")
|
MESSAGE(STATUS "Found Boost.Python libraries in ${Boost_INCLUDE_DIR} as ${Boost_LIBRARIES}")
|
||||||
|
FIND_PACKAGE(PythonLibs REQUIRED)
|
||||||
ELSE (Boost_FOUND)
|
ELSE (Boost_FOUND)
|
||||||
MESSAGE(STATUS "Boost.Python libraries were not found")
|
MESSAGE(STATUS "Boost.Python libraries were not found")
|
||||||
ENDIF (Boost_FOUND)
|
ENDIF (Boost_FOUND)
|
||||||
|
|
||||||
FIND_PACKAGE(PythonLibs REQUIRED)
|
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${IO_SOURCE_DIR}/dtr/src ${LIBXML2_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_PATH})
|
INCLUDE_DIRECTORIES(${IO_SOURCE_DIR}/dtr/src ${LIBXML2_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_PATH})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue