Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable tests failing when debug logs are disabled with enable_debug=OFF.
[simgrid.git] / examples / smpi / comm_dynamic_costs / CMakeLists.txt
index f98d9ba..1c1f77a 100644 (file)
@@ -6,7 +6,11 @@ if(enable_smpi)
   set_target_properties(smpi_comm-dynamic-cost
       PROPERTIES SUFFIX .so
   )
-  ADD_TESH_FACTORIES(smpi_comm-dynamic-cost "*" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/smpi/comm_dynamic_costs --setenv libdir=${CMAKE_BINARY_DIR}/lib --cd ${CMAKE_BINARY_DIR}/examples/smpi/simple-execute ${CMAKE_HOME_DIRECTORY}/examples/smpi/comm_dynamic_costs/comm-dynamic-cost.tesh)
+  if(enable_debug)
+    ADD_TESH_FACTORIES(smpi_comm-dynamic-cost "*" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/smpi/comm_dynamic_costs --setenv libdir=${CMAKE_BINARY_DIR}/lib --cd ${CMAKE_BINARY_DIR}/examples/smpi/simple-execute ${CMAKE_HOME_DIRECTORY}/examples/smpi/comm_dynamic_costs/comm-dynamic-cost.tesh)
+  else()
+    message("-- Examples smpi_comm-dynamic-cost (built without debug).")
+  endif()
   add_dependencies(tests smpi_comm-dynamic-cost)
   add_dependencies(smpi_comm-dynamic-cost smpi_simple-execute) #depends on simple-execute
 endif()