From 4e85f1dfbaf9cf300473c5c15052ca7bb39000b9 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 22 Dec 2009 22:50:24 +0000 Subject: [PATCH] Fix a typo in cmake files git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6952 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/Cmake/CTestCustom.ctest | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/buildtools/Cmake/CTestCustom.ctest b/buildtools/Cmake/CTestCustom.ctest index ff8ce79556..8d5eaf112c 100644 --- a/buildtools/Cmake/CTestCustom.ctest +++ b/buildtools/Cmake/CTestCustom.ctest @@ -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) -- 2.20.1