From: Matthias Maier Date: Fri, 5 Aug 2016 15:44:00 +0000 (-0500) Subject: CMake: Use FindBOOST.cmake to find python libraries in contrib/python_bindings X-Git-Tag: v8.5.0-rc1~801^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e1ea980d22f42449939629fb7d49171905d2692;p=dealii.git CMake: Use FindBOOST.cmake to find python libraries in contrib/python_bindings --- diff --git a/contrib/python-bindings/source/CMakeLists.txt b/contrib/python-bindings/source/CMakeLists.txt index 5ca99eb671..986d59b487 100644 --- a/contrib/python-bindings/source/CMakeLists.txt +++ b/contrib/python-bindings/source/CMakeLists.txt @@ -20,6 +20,16 @@ INCLUDE(FindPythonLibs) INCLUDE(FindPythonInterp) +# +# Unset Boost_Found and run the low level FindBOOST.cmake module again to +# pick up libboost_python.so +# +LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/) +SET(Boost_FOUND) +# Use the low level _FIND_PACKAGE function instead of our wrapper +_FIND_PACKAGE(Boost 1.54 COMPONENTS python) +LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/) + # # FIXME: Once finalized, reconsider moving this definitions into # cmake/setup_dealii.cmake