diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-11 16:36:08 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-14 16:17:23 (GMT) |
commit | 7eacbaed4db3c3fe5d6c0e3a31e239530a7468f1 (patch) | |
tree | 16947f9574c69cfa8bdd18decad649ff41adc69f /Modules/CMakeBackwardCompatibilityCXX.cmake | |
parent | 3a71d34cf3a10ee215ae3899acafd29551ba6e7e (diff) | |
download | CMake-7eacbaed4db3c3fe5d6c0e3a31e239530a7468f1.zip CMake-7eacbaed4db3c3fe5d6c0e3a31e239530a7468f1.tar.gz CMake-7eacbaed4db3c3fe5d6c0e3a31e239530a7468f1.tar.bz2 |
Replace MATCHES ".+" tests with NOT STREQUAL ""
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityCXX.cmake')
-rw-r--r-- | Modules/CMakeBackwardCompatibilityCXX.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeBackwardCompatibilityCXX.cmake b/Modules/CMakeBackwardCompatibilityCXX.cmake index 94a94ee..f1db46e 100644 --- a/Modules/CMakeBackwardCompatibilityCXX.cmake +++ b/Modules/CMakeBackwardCompatibilityCXX.cmake @@ -39,7 +39,7 @@ if(NOT CMAKE_SKIP_COMPATIBILITY_TESTS) endif() # if CMAKE_TRY_ANSI_CXX_FLAGS has something in it, see # if the compiler accepts it - if( CMAKE_TRY_ANSI_CXX_FLAGS MATCHES ".+") + if(NOT CMAKE_TRY_ANSI_CXX_FLAGS STREQUAL "") CHECK_CXX_ACCEPTS_FLAG(${CMAKE_TRY_ANSI_CXX_FLAGS} CMAKE_CXX_ACCEPTS_FLAGS) # if the compiler liked the flag then set CMAKE_ANSI_CXXFLAGS # to the flag |