From: degomme Date: Wed, 24 Feb 2016 14:49:20 +0000 (+0100) Subject: Somehow cmake on windows+ci found this syntax wrong and did not compile ucontexts.. X-Git-Tag: v3_13~697 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ae9f7410610f94d4ebdce8d5e72e1e6939c3f71d Somehow cmake on windows+ci found this syntax wrong and did not compile ucontexts.. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3afdd2f362..801a1c0a91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -608,10 +608,7 @@ if(WIN32) try_compile(HAVE_UCONTEXT ${CMAKE_BINARY_DIR} ${CMAKE_HOME_DIRECTORY}/tools/cmake/test_prog/prog_AC_CHECK_MCSC.c - COMPILE_DEFINITIONS _XBT_WIN32 - INCLUDE_DIRECTORIES - ${CMAKE_HOME_DIRECTORY}/src/include - ${CMAKE_HOME_DIRECTORY}/src/xbt + COMPILE_DEFINITIONS -D_XBT_WIN32 -I${CMAKE_HOME_DIRECTORY}/src/include -I${CMAKE_HOME_DIRECTORY}/src/xbt ) else() # We always provide our own implementation of ucontext on Windows.