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:
@@ -32,16 +32,16 @@ find_path(MPFR_INCLUDES
|
||||
if(NOT MPFR_FIND_VERSION)
|
||||
if(NOT MPFR_FIND_VERSION_MAJOR)
|
||||
set(MPFR_FIND_VERSION_MAJOR 1)
|
||||
endif(NOT MPFR_FIND_VERSION_MAJOR)
|
||||
endif()
|
||||
if(NOT MPFR_FIND_VERSION_MINOR)
|
||||
set(MPFR_FIND_VERSION_MINOR 0)
|
||||
endif(NOT MPFR_FIND_VERSION_MINOR)
|
||||
endif()
|
||||
if(NOT MPFR_FIND_VERSION_PATCH)
|
||||
set(MPFR_FIND_VERSION_PATCH 0)
|
||||
endif(NOT MPFR_FIND_VERSION_PATCH)
|
||||
endif()
|
||||
|
||||
set(MPFR_FIND_VERSION "${MPFR_FIND_VERSION_MAJOR}.${MPFR_FIND_VERSION_MINOR}.${MPFR_FIND_VERSION_PATCH}")
|
||||
endif(NOT MPFR_FIND_VERSION)
|
||||
endif()
|
||||
|
||||
|
||||
if(MPFR_INCLUDES)
|
||||
@@ -65,11 +65,11 @@ if(MPFR_INCLUDES)
|
||||
set(MPFR_VERSION_OK FALSE)
|
||||
message(STATUS "MPFR version ${MPFR_VERSION} found in ${MPFR_INCLUDES}, "
|
||||
"but at least version ${MPFR_FIND_VERSION} is required")
|
||||
else(${MPFR_VERSION} VERSION_LESS ${MPFR_FIND_VERSION})
|
||||
else()
|
||||
set(MPFR_VERSION_OK TRUE)
|
||||
endif(${MPFR_VERSION} VERSION_LESS ${MPFR_FIND_VERSION})
|
||||
endif()
|
||||
|
||||
endif(MPFR_INCLUDES)
|
||||
endif()
|
||||
|
||||
# Set MPFR_LIBRARIES
|
||||
|
||||
|
||||
Reference in New Issue
Block a user