summaryrefslogtreecommitdiff
path: root/Modules/TestForSTDNamespace.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-08 09:58:33 -0400
committerNils Gladitz <nilsgladitz@gmail.com>2014-09-11 21:23:24 +0200
commit0b12815dc2feeb328a86b77328d13a328368d38b (patch)
tree96edfb2c3cc952cde49f5033cce285a0ae1f131a /Modules/TestForSTDNamespace.cmake
parent188a1f236e1594fc46163fbad5e062e3978c1e5a (diff)
downloadcmake-0b12815dc2feeb328a86b77328d13a328368d38b.tar.gz
Modules/Test*.cmake: Use if(DEFINED) to simplify conditions
Replace old hacks of the form 'if("${VAR}" MATCHES "^${VAR}$")' with the much simpler 'if(NOT DEFINED ${VAR})'.
Diffstat (limited to 'Modules/TestForSTDNamespace.cmake')
-rw-r--r--Modules/TestForSTDNamespace.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/TestForSTDNamespace.cmake b/Modules/TestForSTDNamespace.cmake
index e43b75df61..0d907744a4 100644
--- a/Modules/TestForSTDNamespace.cmake
+++ b/Modules/TestForSTDNamespace.cmake
@@ -23,7 +23,7 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
-if("CMAKE_STD_NAMESPACE" MATCHES "^CMAKE_STD_NAMESPACE$")
+if(NOT DEFINED CMAKE_STD_NAMESPACE)
message(STATUS "Check for STD namespace")
try_compile(CMAKE_STD_NAMESPACE ${CMAKE_BINARY_DIR}
${CMAKE_ROOT}/Modules/TestForSTDNamespace.cxx