X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cce8328c524aac009315d1c89c375625472eb6f6..0053bacb6660743f437919503cb9cd376de9bea7:/doc/HelloWorld/CMakeLists.txt diff --git a/doc/HelloWorld/CMakeLists.txt b/doc/HelloWorld/CMakeLists.txt index 6fd3310944..d93fa60d6d 100644 --- a/doc/HelloWorld/CMakeLists.txt +++ b/doc/HelloWorld/CMakeLists.txt @@ -37,15 +37,10 @@ RELATIVE ${CMAKE_HOME_DIRECTORY}/ ) string(REPLACE ".c" "" TARGET_NAME ${SOURCE_FILE}) -######################### -# add_executable # -# args1 target name # -# args2 sources # -######################### foreach(target "${TARGET_NAME}") add_executable(${target} "${target}.c") message(STATUS "source_file: ${target}.c") message(STATUS "target name: ${target}.exe") # Any targets need to be linked with simgrid and pcre - target_link_libraries(${target} simgrid pcre) + target_link_libraries(${target} simgrid pcre pthread) endforeach(target ${SOURCE_FILE})