From 3913e24ea3560b83c2def74d080e6910c10b6d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Mon, 22 May 2017 11:14:38 +0200 Subject: Do not call pkg_check_module if the MODULE_FOUND is already cached --- cmake/Modules/FindLIBUUID.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmake/Modules/FindLIBUUID.cmake') diff --git a/cmake/Modules/FindLIBUUID.cmake b/cmake/Modules/FindLIBUUID.cmake index b4bf341..67352ab 100644 --- a/cmake/Modules/FindLIBUUID.cmake +++ b/cmake/Modules/FindLIBUUID.cmake @@ -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 -- cgit v1.2.3