From: Martin Quinson Date: Mon, 7 Mar 2016 09:32:49 +0000 (+0100) Subject: Ceterum censeo Applem delendam esse. X-Git-Tag: v3_13~500^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7464efd30359d41efbe4d9ed402b7192183d1f4c?hp=9d6928a80d5f8ef2e19c1bb2341faf965825292d Ceterum censeo Applem delendam esse. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ec3296a3b..0252eedf9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -512,11 +512,10 @@ endif() if(NOT HAVE_UCONTEXT_H) message("-- No ucontext factory: not found.") +elseif(APPLE) + message("-- No ucontext factory: Apple don't want us to use them.") + set(HAVE_UCONTEXT_H 0) else() - # This is needed for ucontext on MacOS X: - if(CMAKE_SYSTEM_NAME MATCHES "Darwin") - add_definitions(-D_XOPEN_SOURCE=700 -D_DARWIN_C_SOURCE) - endif() try_compile(compile_makecontext ${CMAKE_BINARY_DIR} ${CMAKE_HOME_DIRECTORY}/tools/cmake/test_prog/prog_makecontext.c OUTPUT_VARIABLE compile_makecontext_output)