From: Arnaud Giersch Date: Sun, 22 Nov 2020 20:17:21 +0000 (+0100) Subject: Search for Python3_Development too. X-Git-Tag: v3.26~144 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/487f9800ac68f0dd5659ab0d5c6dc218dea9a141?hp=436d32558bd571ced2fafdd1117b42b0a35c7b6b Search for Python3_Development too. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e05c8d5a9..34eca7855d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)