Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Search for Python3_Development too.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 22 Nov 2020 20:17:21 +0000 (21:17 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 22 Nov 2020 20:17:21 +0000 (21:17 +0100)
CMakeLists.txt

index 4e05c8d..34eca78 100644 (file)
@@ -146,7 +146,7 @@ if(CMAKE_VERSION VERSION_LESS "3.12")
     message(FATAL_ERROR "Please install Python (version 3 or higher) to compile SimGrid.")
   endif()
 else()
-  find_package(Python3)
+  find_package(Python3 COMPONENTS Interpreter Development)
   if(NOT Python3_FOUND)
     message(FATAL_ERROR "Please install Python (version 3 or higher) to compile SimGrid.")
   endif()
@@ -820,7 +820,7 @@ if((NOT DEFINED enable_python) OR enable_python)
     endif()
   endif()
 
-  if(NOT PYTHONLIBS_FOUND)
+  if(NOT PYTHONLIBS_FOUND AND NOT Python3_Development_FOUND)
     message(STATUS "Python libs not found. Turn pybind11 off.")
 
     set(pybind11_FOUND OFF)