message(FATAL_ERROR "Please install Perl to compile SimGrid.")
endif()
+# tesh.py needs python 3 (or the module python-subprocess32 on python2.8+)
+set(PythonInterp_FIND_VERSION 3)
+set(PythonInterp_FIND_VERSION_COUNT 1)
+set(PythonInterp_FIND_VERSION_MAJOR 3)
+include(FindPythonInterp)
+
if (APPLE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# the rest should only be changed if you understand what you're doing
if(enable_maintainer_mode AND NOT WIN32)
- find_program(PYTHON_EXE NAMES python)
- mark_as_advanced(PYTHON_EXE)
- if (PYTHON_EXE)
+ if (PYTHON_EXECUTABLE)
add_custom_command(
OUTPUT
${CMAKE_HOME_DIRECTORY}/src/simix/popping_generated.cpp
${CMAKE_HOME_DIRECTORY}/src/simix/simcalls.in
COMMENT "Generating simcalls source files"
- COMMAND ${PYTHON_EXE} simcalls.py
+ COMMAND ${PYTHON_EXECUTABLE} simcalls.py
WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/src/simix/
)
tesh -- testing shell
========================
-Copyright (c) 2012-2015. The SimGrid Team.
+Copyright (c) 2012-2016. The SimGrid Team.
All rights reserved.
This program is free software; you can redistribute it and/or modify it
#TODO: child of child of child that printfs. Does it work?
-#TODO: a child die after its parent. What happen?
+#TODO: a child dies after its parent. What happen?
#TODO: regular expression in output
#ex: >> Time taken: [0-9]+s