]> AND Public Git Repository - simgrid.git/blobdiff - buildtools/Cmake/CompleteInFiles.cmake
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics
[simgrid.git] / buildtools / Cmake / CompleteInFiles.cmake
index 49d1d001f0ce51b943647d9a657dc5d8bef8c612..a9fea6aa652a0e8cabb2925dea25ac9af428cead 100644 (file)
@@ -271,12 +271,8 @@ ELSE(CMAKE_CROSSCOMPILING)
                        file(READ "${simgrid_BINARY_DIR}/conftestval" mcsc)
                        STRING(REPLACE "\n" "" mcsc "${mcsc}")
                        if(mcsc)
-                           if(APPLE AND NOT ucontext) # TODO for the moment ucontext don't work on MAC OSX
-                               set(mcsc "no") 
-                           else(APPLE AND NOT ucontext)
-                               set(mcsc "yes")
-                               set(HAVE_UCONTEXT_H 1)
-                               endif(APPLE AND NOT ucontext)
+                               set(mcsc "yes")
+                               set(HAVE_UCONTEXT_H 1)
                        else(mcsc)
                                set(mcsc "no")
                        endif(mcsc)
@@ -702,7 +698,7 @@ endif(ADDR2LINE)
 ### Check if OSX can compile with ucontext (with gcc 4.[1-5] it is broken)
 if(APPLE)
     if(APPLE_NEED_GCC_VERSION GREATER COMPILER_C_VERSION_MAJOR_MINOR)
-        message(STATUS "Ucontext can't be used with this version of gcc (must be greater than 4.5")
+        message(STATUS "Ucontext can't be used with this version of gcc (must be greater than 4.5)")
         set(HAVE_UCONTEXT_H 0)
     endif(APPLE_NEED_GCC_VERSION GREATER COMPILER_C_VERSION_MAJOR_MINOR)
 endif(APPLE)