From: Martin Quinson Date: Sun, 27 Mar 2016 16:03:24 +0000 (+0200) Subject: Fix build without graphviz X-Git-Tag: v3_13~251 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4a10950502eb1004daacf5c01dc9ac3dcbaac587?hp=d8bce3cb849ed5eb9cd7d34966e8de15ea993986 Fix build without graphviz --- diff --git a/examples/simdag/CMakeLists.txt b/examples/simdag/CMakeLists.txt index 15769f1e77..f4d2067d50 100644 --- a/examples/simdag/CMakeLists.txt +++ b/examples/simdag/CMakeLists.txt @@ -21,7 +21,11 @@ set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/dag-dotload/dag_wi ${CMAKE_CURRENT_SOURCE_DIR}/ptg-dotload/ptg.dot ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_bad_schedule.dot ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_good_schedule.dot PARENT_SCOPE) - -foreach(x availability daxload fail typed_tasks io properties throttling dag-dotload ptg-dotload schedule-dotload scheduling test) +foreach(x availability daxload fail typed_tasks io properties throttling scheduling test) ADD_TESH(simdag-${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/simdag --cd ${CMAKE_BINARY_DIR}/examples/simdag ${CMAKE_HOME_DIRECTORY}/examples/simdag/${x}/sd_${x}.tesh) endforeach() +if(HAVE_GRAPHVIZ) + foreach(x dag-dotload ptg-dotload schedule-dotload) + ADD_TESH(simdag-${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/simdag --cd ${CMAKE_BINARY_DIR}/examples/simdag ${CMAKE_HOME_DIRECTORY}/examples/simdag/${x}/sd_${x}.tesh) + endforeach() +endif()