]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Use FindBOOST.cmake to find python libraries in contrib/python_bindings
authorMatthias Maier <tamiko@43-1.org>
Fri, 5 Aug 2016 15:44:00 +0000 (10:44 -0500)
committerMatthias Maier <tamiko@43-1.org>
Fri, 5 Aug 2016 15:46:01 +0000 (10:46 -0500)
contrib/python-bindings/source/CMakeLists.txt

index 5ca99eb671fbcb10e4786e1480eb7a1a676a86ef..986d59b487d7f3a99e1ddad8fe635f3cc42b9a6c 100644 (file)
 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.