Skip to content

Commit

Permalink
Fix linking problems with system CPR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TheAssassin committed May 25, 2023
1 parent e423803 commit 15effb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/updateinformation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ target_include_directories(updateinformation
target_link_libraries(updateinformation
PRIVATE util
PRIVATE nlohmann_json::nlohmann_json
PRIVATE ${CPR_LIBRARIES}
PRIVATE cpr
)
4 changes: 2 additions & 2 deletions src/updater/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 15effb6

Please sign in to comment.