mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user