From ef794bbd11860ad058db7a060bc61adc321986a6 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 22 Sep 2020 13:59:33 -0400 Subject: [PATCH] move pkgconfig requirement (#1355) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43cbb0309..c5da2a7dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,11 +123,12 @@ if(NOT WIN32) endif() endif() +find_package(PkgConfig REQUIRED) + if(NOT TARGET sodium) # Allow -D DOWNLOAD_SODIUM=FORCE to download without even checking for a local libsodium option(DOWNLOAD_SODIUM "Allow libsodium to be downloaded and built locally if not found on the system" OFF) if(NOT DOWNLOAD_SODIUM STREQUAL "FORCE" AND NOT BUILD_STATIC_DEPS) - find_package(PkgConfig REQUIRED) pkg_check_modules(SODIUM libsodium>=1.0.18 IMPORTED_TARGET) endif()