From: Pedro Velho Date: Wed, 22 Feb 2012 19:18:29 +0000 (-0200) Subject: OUTPUT_VARIABLE was always returning void string in MacOS Lion 11.3.0 (Darwin), using... X-Git-Tag: exp_20120308~23^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4bc7488fce1d27f7234e043853cf9259a8947636 OUTPUT_VARIABLE was always returning void string in MacOS Lion 11.3.0 (Darwin), using RESULT_VARIABLE puts the right value on HAVE_THREAD_LOCAL_STORAGE. --- diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index 745fab82ec..5cd41c2574 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -149,7 +149,7 @@ CHECK_FUNCTION_EXISTS(mergesort HAVE_MERGESORT) execute_process( COMMAND "${CMAKE_C_COMPILER} ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/test_prog/prog_thread_storage.c" WORKING_DIRECTORY ${CMAKE_BINARY_DIR} -OUTPUT_VARIABLE HAVE_thread_storage_run +RESULT_VARIABLE HAVE_thread_storage_run ) if(HAVE_thread_storage_run)