From 1749eb7b408b6d2ce8f82070c2af464f9d6819fc Mon Sep 17 00:00:00 2001 From: Dmytro Aleksandrov Date: Sun, 2 Aug 2020 13:31:09 +0300 Subject: [PATCH] Fix find_package arguments order. With current argument order cmake's FindCURL module checks for a component named `7.32.0` in the curl package. According to the find_package reference the version argument follows PackageName and after the REQUIRED keyword an optional list of components is placed. Resolves #96 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 566b16d..f0a2c87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,8 +220,8 @@ elseif(APPLE) COMMAND "${MACDEPLOYQT}" "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.app" -qmldir="${CMAKE_CURRENT_SOURCE_DIR}") else() - find_package(CURL REQUIRED 7.32.0) - find_package(LibArchive REQUIRED 3.2.0) + find_package(CURL 7.32.0 REQUIRED) + find_package(LibArchive 3.2.0 REQUIRED) find_package(OpenSSL REQUIRED) if (NOT CMAKE_CROSSCOMPILING) find_program(LSBLK "lsblk")