Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reorganize cmake directory.
[simgrid.git] / CMakeLists.txt
index cea929c..1c9af54 100644 (file)
@@ -10,16 +10,16 @@ set(libsmpi_version "${release_version}")
 exec_program("${CMAKE_COMMAND} -E remove -f ${simgrid_BINARY_DIR}/CTestTestfile.cmake" OUTPUT_VARIABLE rmok)
 
 if(WIN32)
-    message("C_COMPILER                        $ENV{CC}")
-    message("CXX_COMPILER              $ENV{CXX}")
-    message("MAKE_PROGRAM              ${CMAKE_MAKE_PROGRAM}")
-    message("RC_COMPILER               $ENV{RC}")
-    message("INCLUDE                   $ENV{INCLUDE}")
-    message("LIB                               $ENV{LIB}")
-    
-    if(NOT $ENV{CC} OR NOT $ENV{CXX} OR NOT $ENV{INCLUDE} OR NOT $ENV{RC} OR NOT $ENV{LIB})
-       message(FATAL_ERROR "Need to set CC, CXX, RC, INCLUDE and LIB to environment variables.")
-    endif(NOT $ENV{CC} OR NOT $ENV{CXX} OR NOT $ENV{INCLUDE} OR NOT $ENV{RC} OR NOT $ENV{LIB})
+       message("       Be sure all those variables are correctely set.")
+    message("          -- C_COMPILER                   $ENV{CC}")
+    message("          -- CXX_COMPILER                 $ENV{CXX}")    
+    message("          -- RC_COMPILER                  $ENV{RC}")
+    message("          -- INCLUDE                      $ENV{INCLUDE}")
+    message("          -- LIB                          $ENV{LIB}")
+    message("          -- MAKE_PROGRAM                 ${CMAKE_MAKE_PROGRAM}")
+    message("          -- CMAKE_BUILD_TOOL                     ${CMAKE_BUILD_TOOL}")
+    message("          -- LINKER                               ${CMAKE_LINKER}")
+    message("          -- CMAKE_GENERATOR                      ${CMAKE_GENERATOR}\n\n")
 endif(WIN32)
 
 ### Find programs and paths