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
+3 -1
View File
@@ -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