]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Call find_package(PythonInterp) before find_package(PythonLibs) 6149/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 2 Apr 2018 21:01:42 +0000 (17:01 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 2 Apr 2018 21:01:42 +0000 (17:01 -0400)
find_package(PythonInterp) should be called first to get the currently active
Python version by default with a consistent version of PYTHON_LIBRARIES.

contrib/python-bindings/source/CMakeLists.txt

index 8b9afeee78f0e088455a0ef833848784514589a0..ac4bd3ae11b5c17ff16d5fa70b5a5ed982d46142 100644 (file)
@@ -17,8 +17,8 @@
 # Find Python:
 #
 
-INCLUDE(FindPythonLibs)
 INCLUDE(FindPythonInterp)
+INCLUDE(FindPythonLibs)
 
 IF(FEATURE_BOOST_BUNDLED_CONFIGURED)
   MESSAGE(FATAL_ERROR

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.