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
This commit is contained in:
Dmytro Aleksandrov 2020-08-02 13:31:09 +03:00
parent c08887f788
commit 1749eb7b40

View file

@ -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")