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(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