summaryrefslogtreecommitdiffstats
path: root/CompileFlags.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-15 14:22:34 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-04-15 14:22:34 (GMT)
commit18aaed77c0eb4ea81e02ece5d0be0525e4460828 (patch)
treeb9edac325fd6d09118b15aca5d8b2d82a1f76ab1 /CompileFlags.cmake
parent60d1882a67a550c0fbe11e2462669830c89ee89e (diff)
parentf21ac16edd0d2fbe78daf17bf5f964e4cfbd694b (diff)
downloadCMake-18aaed77c0eb4ea81e02ece5d0be0525e4460828.zip
CMake-18aaed77c0eb4ea81e02ece5d0be0525e4460828.tar.gz
CMake-18aaed77c0eb4ea81e02ece5d0be0525e4460828.tar.bz2
Merge topic 'matches-cleanup'
f21ac16e Replace MATCHES test on numbers with EQUAL test 7eacbaed Replace MATCHES ".+" tests with NOT STREQUAL "" 3a71d34c Use CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM where sufficient b0b4b460 Remove .* expressions from beginning and end of MATCHES regexs 5bd48ac5 Replace string(REGEX REPLACE) with string(REPLACE) where possible 2622bc3f Clean up usage of if(... MATCHES regex) followed string(REGEX REPLACE regex)
Diffstat (limited to 'CompileFlags.cmake')
-rw-r--r--CompileFlags.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake
index 5874031..a4a4a78 100644
--- a/CompileFlags.cmake
+++ b/CompileFlags.cmake
@@ -34,20 +34,20 @@ else()
endif()
#silence duplicate symbol warnings on AIX
-if(CMAKE_SYSTEM MATCHES "AIX.*")
+if(CMAKE_SYSTEM_NAME MATCHES "AIX")
if(NOT CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -bhalt:5 ")
endif()
endif()
-if(CMAKE_SYSTEM MATCHES "IRIX.*")
+if(CMAKE_SYSTEM_NAME MATCHES "IRIX")
if(NOT CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-woff84 -no_auto_include")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-woff15")
endif()
endif()
-if(CMAKE_SYSTEM MATCHES "OSF1-V.*")
+if(CMAKE_SYSTEM MATCHES "OSF1-V")
if(NOT CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -timplicit_local -no_implicit_include ")
endif()