summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly/CheckCXXSymbolExists
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeOnly/CheckCXXSymbolExists')
-rw-r--r--Tests/CMakeOnly/CheckCXXSymbolExists/CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/Tests/CMakeOnly/CheckCXXSymbolExists/CMakeLists.txt b/Tests/CMakeOnly/CheckCXXSymbolExists/CMakeLists.txt
index 70c186c..9528aa3 100644
--- a/Tests/CMakeOnly/CheckCXXSymbolExists/CMakeLists.txt
+++ b/Tests/CMakeOnly/CheckCXXSymbolExists/CMakeLists.txt
@@ -23,7 +23,7 @@ foreach(_config_type Release RelWithDebInfo MinSizeRel Debug)
if (CSE_RESULT_${_config_type})
message(SEND_ERROR "CheckCXXSymbolExists reported a nonexistent symbol as existing in configuration ${_config_type}")
- endif (CSE_RESULT_${_config_type})
+ endif ()
endforeach()
set(CMAKE_TRY_COMPILE_CONFIGURATION ${CMAKE_BUILD_TYPE})
@@ -42,12 +42,12 @@ if (NOT CSE_RESULT_ERRNO_CERRNO)
if (NOT CSE_RESULT_ERRNO_ERRNOH)
message(SEND_ERROR "CheckCXXSymbolExists did not find errno in <cerrno> and <errno.h>")
- else (NOT CSE_RESULT_ERRNO_ERRNOH)
+ else ()
message(STATUS "errno found in <errno.h>")
- endif (NOT CSE_RESULT_ERRNO_ERRNOH)
-else (NOT CSE_RESULT_ERRNO_CERRNO)
+ endif ()
+else ()
message(STATUS "errno found in <cerrno>")
-endif (NOT CSE_RESULT_ERRNO_CERRNO)
+endif ()
if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
@@ -58,5 +58,5 @@ if (CMAKE_COMPILER_IS_GNUCXX)
if (CSE_RESULT_O3)
message(SEND_ERROR "CheckCXXSymbolExists reported a nonexistent symbol as existing with optimization -O3")
- endif (CSE_RESULT_O3)
-endif (CMAKE_COMPILER_IS_GNUCXX)
+ endif ()
+endif ()