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