From 15effb69346e49af583b1d96f931fd3859f39473 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Thu, 25 May 2023 12:23:14 +0200 Subject: [PATCH] Fix linking problems with system CPR The variable we used was not defined when using a system CPR. Instead of defining the variable, we can use the already-defined alias target which also works with a downloaded CPR. --- src/updateinformation/CMakeLists.txt | 2 +- src/updater/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/updateinformation/CMakeLists.txt b/src/updateinformation/CMakeLists.txt index 07597cf..f1a8ed2 100644 --- a/src/updateinformation/CMakeLists.txt +++ b/src/updateinformation/CMakeLists.txt @@ -20,5 +20,5 @@ target_include_directories(updateinformation target_link_libraries(updateinformation PRIVATE util PRIVATE nlohmann_json::nlohmann_json - PRIVATE ${CPR_LIBRARIES} + PRIVATE cpr ) diff --git a/src/updater/CMakeLists.txt b/src/updater/CMakeLists.txt index cb50c4c..d4b6f4c 100644 --- a/src/updater/CMakeLists.txt +++ b/src/updater/CMakeLists.txt @@ -12,7 +12,7 @@ set_target_properties(libappimageupdate # link thread libraries target_link_libraries(libappimageupdate PRIVATE ${CMAKE_THREAD_LIBS_INIT} - PRIVATE ${CPR_LIBRARIES} + PRIVATE cpr PRIVATE util PRIVATE updateinformation PRIVATE signing @@ -41,7 +41,7 @@ set_target_properties(libappimageupdate_static # link thread libraries target_link_libraries(libappimageupdate_static PRIVATE ${CMAKE_THREAD_LIBS_INIT} - PRIVATE ${CPR_LIBRARIES} + PRIVATE cpr PRIVATE util PRIVATE updateinformation PRIVATE signing