aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/language_support.cmake
diff options
context:
space:
mode:
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)