Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a typo in cmake files
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 22 Dec 2009 22:50:24 +0000 (22:50 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 22 Dec 2009 22:50:24 +0000 (22:50 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6952 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/CTestCustom.ctest

index ff8ce79..8d5eaf1 100644 (file)
@@ -18,17 +18,16 @@ exec_program("${UNAME}" ARGS "${flag}" OUTPUT_VARIABLE "${name}")
 endmacro(getuname)
 MARK_AS_ADVANCED(UNAME)
 
-STRING(TOLOWER ${CMAKE_SYSTEM_NAME} system-NAME)
-if(${system-NAME} STREQUAL "darwin")
-SET(DISTRIB2 "OSX")
-else(${system-NAME} STREQUAL "darwin")
+if(${CMAKE_SYSTEM_NAME} STREQUAL "darwin")
+  SET(DISTRIB2 "OSX")
+else(${CMAKE_SYSTEM_NAME} STREQUAL "darwin")
 
-#Try to get the distrib
-find_program(CAT NAMES cat)
-exec_program("${CAT}" ARGS " /etc/issue" OUTPUT_VARIABLE DISTRIB)
-MARK_AS_ADVANCED(CAT)
-STRING(REPLACE "\\n \\l" "" DISTRIB2 ${DISTRIB})
-endif(${system-NAME} STREQUAL "darwin")
+  #Try to get the distrib
+  find_program(CAT NAMES cat)
+  exec_program("${CAT}" ARGS " /etc/issue" OUTPUT_VARIABLE DISTRIB)
+  MARK_AS_ADVANCED(CAT)
+  STRING(REPLACE "\\n \\l" "" DISTRIB2 ${DISTRIB})
+endif(${CMAKE_SYSTEM_NAME} STREQUAL "darwin")
          
 getuname(osname -s)
 getuname(node -n)