Do not call pkg_check_module if the MODULE_FOUND is already cached
4 files changed, 13 insertions(+), 5 deletions(-) M cmake/Modules/FindBOTAN.cmake M cmake/Modules/FindLIBIDN.cmake M cmake/Modules/FindLIBUUID.cmake M cmake/Modules/FindSYSTEMD.cmake
M cmake/Modules/FindBOTAN.cmake => cmake/Modules/FindBOTAN.cmake +4 -2
@@ 17,8 17,10 @@ include(FindPkgConfig) pkg_check_modules(BOTAN botan-2) pkg_check_modules(BOTAN botan-1.11) if(NOT BOTAN_FOUND) pkg_check_modules(BOTAN botan-2) pkg_check_modules(BOTAN botan-1.11) endif() if(NOT BOTAN_FOUND) find_path(BOTAN_INCLUDE_DIRS NAMES botan/botan.h
M cmake/Modules/FindLIBIDN.cmake => cmake/Modules/FindLIBIDN.cmake +3 -1
@@ 16,7 16,9 @@ # This file is in the public domain include(FindPkgConfig) pkg_check_modules(LIBIDN libidn) if(NOT LIBIDN_FOUND) pkg_check_modules(LIBIDN libidn) endif() if(NOT LIBIDN_FOUND) find_path(LIBIDN_INCLUDE_DIRS NAMES stringprep.h
M cmake/Modules/FindLIBUUID.cmake => cmake/Modules/FindLIBUUID.cmake +3 -1
@@ 16,7 16,9 @@ # This file is in the public domain include(FindPkgConfig) pkg_check_modules(LIBUUID uuid) if(NOT LIBUUID_FOUND) pkg_check_modules(LIBUUID uuid) endif() if(NOT LIBUUID_FOUND) find_path(LIBUUID_INCLUDE_DIRS NAMES uuid/uuid.h
M cmake/Modules/FindSYSTEMD.cmake => cmake/Modules/FindSYSTEMD.cmake +3 -1