Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove IS_WINDOWS (not used)
[simgrid.git] / buildtools / Cmake / CompleteInFiles.cmake
index 9ceb7ef..01e184d 100644 (file)
@@ -451,12 +451,7 @@ if(WIN32)
   endif()
 endif()
 
-IF(CMAKE_CROSSCOMPILING)
-  IF(WIN32)
-    set(windows_context "yes")
-    set(IS_WINDOWS 1)
-  ENDIF()
-ELSE()
+IF(NOT CMAKE_CROSSCOMPILING)
   file(REMOVE "${CMAKE_BINARY_DIR}/testprog*")
   file(REMOVE ${CMAKE_BINARY_DIR}/conftestval)
   set(MCSC_buildcmd ${CMAKE_C_COMPILER} ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/test_prog/prog_AC_CHECK_MCSC.c ${mcsc_flags} -o testprog)
@@ -490,15 +485,6 @@ ELSE()
   message(STATUS "mcsc: ${mcsc}")
 ENDIF()
 
-if(mcsc MATCHES "no" AND pthread)
-  if(HAVE_WINDOWS_H)
-    set(windows_context "yes")
-    set(IS_WINDOWS 1)
-  elseif(HAVE_WINDOWS_H)
-    message(FATAL_ERROR "no appropriate backend found")
-  endif()
-endif()
-
 #Only windows
 
 if(WIN32)
@@ -507,10 +493,6 @@ if(WIN32)
   endif()
 endif()
 
-if(windows_context MATCHES "yes")
-  message(STATUS "Context change to windows")
-endif()
-
 #If can have both context
 
 if(mcsc)