X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d66e96ca98cc03b22059763fdab1146af5e5fadb..824740eb0df1dedddb86035ff3730d87e037f356:/examples/sthread/CMakeLists.txt diff --git a/examples/sthread/CMakeLists.txt b/examples/sthread/CMakeLists.txt index 33f0815199..2b7e8234dc 100644 --- a/examples/sthread/CMakeLists.txt +++ b/examples/sthread/CMakeLists.txt @@ -12,7 +12,7 @@ foreach(x add_executable (pthread-${x} EXCLUDE_FROM_ALL pthread-${x}.c) set_target_properties(pthread-${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(pthread-${x} PRIVATE Threads::Threads) - if(SIMGRID_HAVE_MC) # Only needed to introspect the binary + if(SIMGRID_HAVE_STATEFUL_MC) # Only needed to introspect the binary target_link_libraries(pthread-${x} PUBLIC "-Wl,-znorelro -Wl,-znoseparate-code") # TODO: convert to target_link_option once CMAKE_VERSION is >3.13 endif() @@ -40,7 +40,7 @@ foreach(x add_executable (pthread-${x} EXCLUDE_FROM_ALL pthread-${x}.c) set_target_properties(pthread-${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(pthread-${x} PRIVATE Threads::Threads) - if(SIMGRID_HAVE_MC) # Only needed to introspect the binary + if(SIMGRID_HAVE_STATEFUL_MC) # Only needed to introspect the binary target_link_libraries(pthread-${x} PUBLIC "-Wl,-znorelro -Wl,-znoseparate-code") # TODO: convert to target_link_option once CMAKE_VERSION is >3.13 endif() @@ -63,7 +63,7 @@ foreach(example add_executable (${example} EXCLUDE_FROM_ALL ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.cpp) set_target_properties(${example} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(${example} PRIVATE Threads::Threads) - if(SIMGRID_HAVE_MC) # Only needed to introspect the binary + if(SIMGRID_HAVE_STATEFUL_MC) # Only needed to introspect the binary target_link_libraries(${example} PUBLIC "-fPIC -Wl,-znorelro -Wl,-znoseparate-code") # TODO: convert to target_link_option once CMAKE_VERSION is >3.13 endif() set_target_properties(${example} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${example})