Do not call pkg_check_module if the MODULE_FOUND is already cached
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user