From: suter Date: Thu, 31 Jan 2013 21:11:46 +0000 (+0100) Subject: don't compile simdag_trace if Tracing is off X-Git-Tag: v3_9_90~567 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/022f306dcd08f62b30b45ffecec00e6b4c8c22cc don't compile simdag_trace if Tracing is off --- diff --git a/examples/simdag/CMakeLists.txt b/examples/simdag/CMakeLists.txt index afb0ab6884..91c8327225 100644 --- a/examples/simdag/CMakeLists.txt +++ b/examples/simdag/CMakeLists.txt @@ -9,7 +9,10 @@ add_executable(sd_avail sd_avail.c) add_executable(sd_typed_tasks_test sd_typed_tasks_test.c) add_executable(sd_comm_throttling sd_comm_throttling.c) add_executable(sd_seq_access sd_seq_access.c) -add_executable(simdag_tracing simdag_trace.c) + +if (HAVE_TRACING) + add_executable(simdag_tracing simdag_trace.c) +endif() ### Add definitions for compile if(NOT WIN32) @@ -20,7 +23,10 @@ if(NOT WIN32) target_link_libraries(sd_typed_tasks_test simgrid pthread m ) target_link_libraries(sd_comm_throttling simgrid pthread m ) target_link_libraries(sd_seq_access simgrid pthread m ) - target_link_libraries(simdag_tracing simgrid pthread m ) + + if (HAVE_TRACING) + target_link_libraries(simdag_tracing simgrid pthread m ) + endif() add_custom_command(TARGET ex_sd_test POST_BUILD @@ -40,8 +46,10 @@ else() target_link_libraries(sd_typed_tasks_test simgrid) target_link_libraries(sd_comm_throttling simgrid) target_link_libraries(sd_seq_access simgrid) - target_link_libraries(simdag_tracing simgrid) - + if (HAVE_TRACING) + target_link_libraries(simdag_tracing simgrid) + endif() + add_custom_command(TARGET ex_sd_test POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/ex_sd_test.exe ${CMAKE_CURRENT_BINARY_DIR}/sd_test.exe