summaryrefslogtreecommitdiff
path: root/cmake/Modules/FindLIBUUID.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/FindLIBUUID.cmake')
-rw-r--r--cmake/Modules/FindLIBUUID.cmake4
1 files changed, 3 insertions, 1 deletions
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