Skip to content

Commit 15effb6

Browse files
committed
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.
1 parent e423803 commit 15effb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/updateinformation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ target_include_directories(updateinformation
2020
target_link_libraries(updateinformation
2121
PRIVATE util
2222
PRIVATE nlohmann_json::nlohmann_json
23-
PRIVATE ${CPR_LIBRARIES}
23+
PRIVATE cpr
2424
)

src/updater/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set_target_properties(libappimageupdate
1212
# link thread libraries
1313
target_link_libraries(libappimageupdate
1414
PRIVATE ${CMAKE_THREAD_LIBS_INIT}
15-
PRIVATE ${CPR_LIBRARIES}
15+
PRIVATE cpr
1616
PRIVATE util
1717
PRIVATE updateinformation
1818
PRIVATE signing
@@ -41,7 +41,7 @@ set_target_properties(libappimageupdate_static
4141
# link thread libraries
4242
target_link_libraries(libappimageupdate_static
4343
PRIVATE ${CMAKE_THREAD_LIBS_INIT}
44-
PRIVATE ${CPR_LIBRARIES}
44+
PRIVATE cpr
4545
PRIVATE util
4646
PRIVATE updateinformation
4747
PRIVATE signing

0 commit comments

Comments
 (0)