From 6fb3e5f1767855bc1a8aa3c868bc7fbf0eeb67ef Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Thu, 31 Oct 2019 11:36:27 -0500 Subject: 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. --- cmake/FindKLU.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmake/FindKLU.cmake') diff --git a/cmake/FindKLU.cmake b/cmake/FindKLU.cmake index 4a8f8e0b0..6217d1490 100644 --- a/cmake/FindKLU.cmake +++ b/cmake/FindKLU.cmake @@ -3,7 +3,7 @@ if (KLU_INCLUDES AND KLU_LIBRARIES) set(KLU_FIND_QUIETLY TRUE) -endif (KLU_INCLUDES AND KLU_LIBRARIES) +endif () find_path(KLU_INCLUDES NAMES @@ -22,7 +22,7 @@ if(KLU_LIBRARIES) if(NOT KLU_LIBDIR) get_filename_component(KLU_LIBDIR ${KLU_LIBRARIES} PATH) - endif(NOT KLU_LIBDIR) + endif() find_library(COLAMD_LIBRARY colamd PATHS ${KLU_LIBDIR} $ENV{KLUDIR} ${LIB_INSTALL_DIR}) if(COLAMD_LIBRARY) @@ -39,7 +39,7 @@ if(KLU_LIBRARIES) set(KLU_LIBRARIES ${KLU_LIBRARIES} ${BTF_LIBRARY}) endif() -endif(KLU_LIBRARIES) +endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(KLU DEFAULT_MSG -- cgit v1.2.3