Do not call pkg_check_module if the MODULE_FOUND is already cached

This commit is contained in:
louiz’
2017-05-23 11:45:59 +02:00
parent cf1c8f188c
commit 3913e24ea3
4 changed files with 13 additions and 5 deletions
+4 -2
View File
@@ -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