~singpolyma/biboumi

3913e24ea3560b83c2def74d080e6910c10b6d2f — louiz’ 6 years ago cf1c8f1
Do not call pkg_check_module if the MODULE_FOUND is already cached
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
@@ 16,7 16,9 @@
# This file is in the public domain

include(FindPkgConfig)
pkg_check_modules(SYSTEMD libsystemd)
if(NOT SYSTEMD_FOUND)
  pkg_check_modules(SYSTEMD libsystemd)
endif()

if(NOT SYSTEMD_FOUND)
  find_path(SYSTEMD_INCLUDE_DIRS NAMES systemd/sd-daemon.h