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/FindPastix.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmake/FindPastix.cmake') diff --git a/cmake/FindPastix.cmake b/cmake/FindPastix.cmake index 470477fdc..3b47d5ce3 100644 --- a/cmake/FindPastix.cmake +++ b/cmake/FindPastix.cmake @@ -238,7 +238,7 @@ if (NOT MPI_FOUND AND PASTIX_LOOK_FOR_MPI) mark_as_advanced(MPI_LIBRARY) mark_as_advanced(MPI_EXTRA_LIBRARY) endif() -endif (NOT MPI_FOUND AND PASTIX_LOOK_FOR_MPI) +endif () # PASTIX may depend on STARPU #---------------------------- @@ -279,7 +279,7 @@ if( NOT STARPU_FOUND AND PASTIX_LOOK_FOR_STARPU) COMPONENTS ${STARPU_COMPONENT_LIST}) endif() -endif( NOT STARPU_FOUND AND PASTIX_LOOK_FOR_STARPU) +endif() # PASTIX may depends on SCOTCH #----------------------------- @@ -478,7 +478,7 @@ foreach(pastix_lib ${PASTIX_libs_to_find}) endif() mark_as_advanced(PASTIX_${pastix_lib}_LIBRARY) -endforeach(pastix_lib ${PASTIX_libs_to_find}) +endforeach() # check a function to validate the find if(PASTIX_LIBRARIES) @@ -681,7 +681,7 @@ if(PASTIX_LIBRARIES) set(CMAKE_REQUIRED_INCLUDES) set(CMAKE_REQUIRED_FLAGS) set(CMAKE_REQUIRED_LIBRARIES) -endif(PASTIX_LIBRARIES) +endif() if (PASTIX_LIBRARIES) list(GET PASTIX_LIBRARIES 0 first_lib) -- cgit v1.2.3