From: Christophe ThiƩry Date: Fri, 22 Apr 2011 15:08:17 +0000 (+0200) Subject: Don't link this test to pthread X-Git-Tag: v3_6_rc3~104 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6e31bb477ffc836d630ada9793873dab17243622?ds=sidebyside Don't link this test to pthread --- diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index d067965679..d398e7a5cc 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -84,7 +84,7 @@ CHECK_FUNCTION_EXISTS(makecontext HAVE_MAKECONTEXT) CHECK_FUNCTION_EXISTS(mmap HAVE_MMAP) #Check if __thread is defined -exec_program("${CMAKE_C_COMPILER} -lpthread ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/test_prog/prog_thread_storage.c" +exec_program("${CMAKE_C_COMPILER} ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/test_prog/prog_thread_storage.c" OUTPUT_VARIABLE HAVE_thread_storage_run) if(HAVE_thread_storage_run) set(HAVE_THREAD_LOCAL_STORAGE 0)