A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mcapi::mc_inc_executed_trans() in run()
[simgrid.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
06992c3
..
92465ca
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-146,10
+146,11
@@
if(CMAKE_VERSION VERSION_LESS "3.12")
message(FATAL_ERROR "Please install Python (version 3 or higher) to compile SimGrid.")
endif()
else()
message(FATAL_ERROR "Please install Python (version 3 or higher) to compile SimGrid.")
endif()
else()
- find_package(Python3)
- if(NOT Python3_FOUND)
+ find_package(Python3
COMPONENTS Interpreter Development
)
+ if(NOT Python3_
Interpreter_
FOUND)
message(FATAL_ERROR "Please install Python (version 3 or higher) to compile SimGrid.")
endif()
message(FATAL_ERROR "Please install Python (version 3 or higher) to compile SimGrid.")
endif()
+ set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
endif()
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
endif()
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
@@
-819,7
+820,7
@@
if((NOT DEFINED enable_python) OR enable_python)
endif()
endif()
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)
message(STATUS "Python libs not found. Turn pybind11 off.")
set(pybind11_FOUND OFF)