From 0053bacb6660743f437919503cb9cd376de9bea7 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Jan 2012 22:37:49 +0100 Subject: [PATCH] Make Hello World example works with mingw --- doc/HelloWorld/CMakeLists.txt | 2 +- doc/HelloWorld/HelloWorld.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/HelloWorld/CMakeLists.txt b/doc/HelloWorld/CMakeLists.txt index 52afb5bbd9..d93fa60d6d 100644 --- a/doc/HelloWorld/CMakeLists.txt +++ b/doc/HelloWorld/CMakeLists.txt @@ -42,5 +42,5 @@ foreach(target "${TARGET_NAME}") 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}) diff --git a/doc/HelloWorld/HelloWorld.c b/doc/HelloWorld/HelloWorld.c index 796b67a95e..1399ea9265 100644 --- a/doc/HelloWorld/HelloWorld.c +++ b/doc/HelloWorld/HelloWorld.c @@ -1,3 +1,4 @@ +#include #include "xbt/log.h" XBT_LOG_NEW_DEFAULT_CATEGORY(HelloWorld, "Messages specific for this Hello World example"); -- 2.20.1