Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix some more doc bugs
[simgrid.git] / examples / smpi / comm_dynamic_costs / CMakeLists.txt
index f98d9bab185ffb7e9f2ec02e034fd4f907b62818..1c1f77a417df0373d59dc9eec35ac69fb991a18c 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()