aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/language_support.cmake
diff options
context:
space:
mode:
authorGravatar Hans Johnson <hans.j.johnson@gmail.com>2019-10-31 11:36:27 -0500
committerGravatar Hans Johnson <hans.j.johnson@gmail.com>2019-10-31 11:36:27 -0500
commit6fb3e5f1767855bc1a8aa3c868bc7fbf0eeb67ef (patch)
treeee5db623e6eb11561a60f9abf0f6d0696c950360 /cmake/language_support.cmake
parentf1e83073082f2733eec6235f2fdf251217a54ade (diff)
STYLE: Remove CMake-language block-end command arguments
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style.
Diffstat (limited to 'cmake/language_support.cmake')
-rw-r--r--cmake/language_support.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/language_support.cmake b/cmake/language_support.cmake
index ddba50945..8e1baf624 100644
--- a/cmake/language_support.cmake
+++ b/cmake/language_support.cmake
@@ -51,13 +51,13 @@ function(workaround_9220 language language_works)
)
if(return_code EQUAL 0)
set(${language_works} ON PARENT_SCOPE)
- else(return_code EQUAL 0)
+ else()
set(${language_works} OFF PARENT_SCOPE)
- endif(return_code EQUAL 0)
- else(return_code EQUAL 0)
+ endif()
+ else()
set(${language_works} OFF PARENT_SCOPE)
- endif(return_code EQUAL 0)
-endfunction(workaround_9220)
+ endif()
+endfunction()
# Temporary tests of the above function.
#workaround_9220(CXX CXX_language_works)