summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindBOTAN.cmake6
-rw-r--r--cmake/Modules/FindLIBIDN.cmake4
-rw-r--r--cmake/Modules/FindLIBUUID.cmake4
-rw-r--r--cmake/Modules/FindSYSTEMD.cmake4
4 files changed, 13 insertions, 5 deletions
diff --git a/cmake/Modules/FindBOTAN.cmake b/cmake/Modules/FindBOTAN.cmake
index 13d2de4..9eb76c4 100644
--- a/cmake/Modules/FindBOTAN.cmake
+++ b/cmake/Modules/FindBOTAN.cmake
@@ -17,8 +17,10 @@
include(FindPkgConfig)
-pkg_check_modules(BOTAN botan-2)
-pkg_check_modules(BOTAN botan-1.11)
+if(NOT BOTAN_FOUND)
+ pkg_check_modules(BOTAN botan-2)
+ pkg_check_modules(BOTAN botan-1.11)
+endif()
if(NOT BOTAN_FOUND)
find_path(BOTAN_INCLUDE_DIRS NAMES botan/botan.h
diff --git a/cmake/Modules/FindLIBIDN.cmake b/cmake/Modules/FindLIBIDN.cmake
index d42257f..c769d06 100644
--- a/cmake/Modules/FindLIBIDN.cmake
+++ b/cmake/Modules/FindLIBIDN.cmake
@@ -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
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
diff --git a/cmake/Modules/FindSYSTEMD.cmake b/cmake/Modules/FindSYSTEMD.cmake
index 899d07a..2d3f063 100644
--- a/cmake/Modules/FindSYSTEMD.cmake
+++ b/cmake/Modules/FindSYSTEMD.cmake
@@ -16,7 +16,9 @@
# This file is in the public domain
include(FindPkgConfig)
-pkg_check_modules(SYSTEMD libsystemd)
+if(NOT SYSTEMD_FOUND)
+ pkg_check_modules(SYSTEMD libsystemd)
+endif()
if(NOT SYSTEMD_FOUND)
find_path(SYSTEMD_INCLUDE_DIRS NAMES systemd/sd-daemon.h