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/FindGoogleHash.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/FindGoogleHash.cmake') diff --git a/cmake/FindGoogleHash.cmake b/cmake/FindGoogleHash.cmake index f6a81a02c..f46ea9c39 100644 --- a/cmake/FindGoogleHash.cmake +++ b/cmake/FindGoogleHash.cmake @@ -1,7 +1,7 @@ if (GOOGLEHASH_INCLUDES AND GOOGLEHASH_LIBRARIES) set(GOOGLEHASH_FIND_QUIETLY TRUE) -endif (GOOGLEHASH_INCLUDES AND GOOGLEHASH_LIBRARIES) +endif () find_path(GOOGLEHASH_INCLUDES NAMES @@ -15,7 +15,7 @@ if(GOOGLEHASH_INCLUDES) file(WRITE ${CMAKE_BINARY_DIR}/googlehash_test.cpp "#include \n#include \nint main(int argc, char** argv) { google::dense_hash_map a; google::sparse_hash_map b; return 0;}\n") try_compile(GOOGLEHASH_COMPILE ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/googlehash_test.cpp OUTPUT_VARIABLE GOOGLEHASH_COMPILE_RESULT) -endif(GOOGLEHASH_INCLUDES) +endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(GOOGLEHASH DEFAULT_MSG GOOGLEHASH_INCLUDES GOOGLEHASH_COMPILE) -- cgit v1.2.3