X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a6ff943c715348dfb571bd7c13f875d91e59a039..e94ee29b340453abdded4e762ba023ed73db42a8:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index cea929cfae..e87b427d6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,9 +17,9 @@ if(WIN32) 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}) + if(NOT EXISTS "$ENV{CC}.exe" OR NOT EXISTS "$ENV{CXX}.exe" OR OR NOT EXISTS "$ENV{RC}.exe" OR NOT EXISTS "$ENV{INCLUDE}" OR OR NOT EXISTS "$ENV{LIB}") + message(FATAL_ERROR "Need to set correctely CC, CXX, RC, INCLUDE and LIB environment variables.") + endif(NOT EXISTS "$ENV{CC}.exe" OR NOT EXISTS "$ENV{CXX}.exe" OR OR NOT EXISTS "$ENV{RC}.exe" OR NOT EXISTS "$ENV{INCLUDE}" OR OR NOT EXISTS "$ENV{LIB}") endif(WIN32) ### Find programs and paths