From 6e1ea980d22f42449939629fb7d49171905d2692 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 5 Aug 2016 10:44:00 -0500 Subject: [PATCH] CMake: Use FindBOOST.cmake to find python libraries in contrib/python_bindings --- contrib/python-bindings/source/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.39.5