# http://simgrid.gforge.inria.fr/simgrid/latest/doc/install_yours.html
# Some configuration
-SIMGRID_INSTALL_PATH = ../.. # Where you installed simgrid
+SIMGRID_INSTALL_PATH ?= ../.. # Where you installed simgrid
CC = gcc # Your compiler (on Mac, use clang instead)
# No change needed bellow for this tutorial.
set(EXTRA_DIST ${EXTRA_DIST} src/surf/trace_mgr_test.cpp)
endif()
-# Also test the tutorial
-if(CMAKE_COMPILER_IS_GNUCC)
+# Also test the tutorial, if SIMGRID_INSTALL_PATH is defined and gcc used
+if(CMAKE_COMPILER_IS_GNUCC AND
+ (NOT "${SIMGRID_INSTALL_PATH}" STREQUAL ""))
ADD_TEST(tuto-msg-0 sh -c "make -C ${CMAKE_SOURCE_DIR}/doc/tuto-msg masterworker && ${CMAKE_SOURCE_DIR}/doc/tuto-msg/masterworker ${CMAKE_SOURCE_DIR}/examples/platforms/small_platform.xml ${CMAKE_SOURCE_DIR}/doc/tuto-msg/deployment0.xml")
ADD_TEST(tuto-msg-1 sh -c "make -C ${CMAKE_SOURCE_DIR}/doc/tuto-msg masterworker-sol1 && ${CMAKE_SOURCE_DIR}/doc/tuto-msg/masterworker-sol1 ${CMAKE_SOURCE_DIR}/examples/platforms/small_platform.xml ${CMAKE_SOURCE_DIR}/doc/tuto-msg/deployment1.xml")
ADD_TEST(tuto-msg-2 sh -c "make -C ${CMAKE_SOURCE_DIR}/doc/tuto-msg masterworker-sol2 && ${CMAKE_SOURCE_DIR}/doc/tuto-msg/masterworker-sol2 ${CMAKE_SOURCE_DIR}/examples/platforms/small_platform.xml ${CMAKE_SOURCE_DIR}/doc/tuto-msg/deployment2.xml")
echo "XX pwd: "$(pwd)
echo "XX"
set -x
+export SIMGRID_INSTALL_PATH=/builds/simgrid_install
cmake -G"$GENERATOR"\
-DCMAKE_INSTALL_PREFIX=/builds/simgrid_install \
-Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \