Commit 3913e24e authored by louiz’'s avatar louiz’

Do not call pkg_check_module if the MODULE_FOUND is already cached

parent cf1c8f18
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment