py3: boost: some diff for the cmake of libarea to work with boost1.64. (at least this is necessary for conda)

This commit is contained in:
looooo
2017-06-21 00:01:02 +02:00
committed by wmayer
parent e1b89d80b9
commit f52e315ec3

View File

@@ -12,7 +12,15 @@ include_directories(${PYTHON_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
if(NOT FREECAD_LIBPACK_USE OR FREECAD_LIBPACK_CHECKFILE_CLBUNDLER)
find_package( Boost COMPONENTS python REQUIRED) # find BOOST and boost-python
if(NOT PYTHON_VERSION_MAJOR LESS 3)
find_package( Boost COMPONENTS python3)
if (NOT Boost_PYTHON3_FOUND)
find_package( Boost COMPONENTS python REQUIRED)
endif()
else()
find_package( Boost COMPONENTS python REQUIRED) # find BOOST and boost-python
endif()
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
MESSAGE(STATUS "found Boost: " ${Boost_LIB_VERSION})