forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup: Use target_link_libraries directly in cmake.
Instead of using target_link_modules, which does magic that we no longer need, because we only have 1 library we install, and all binaries we build link statically because they need access to internal symbols.
- Loading branch information
Showing
6 changed files
with
33 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
add_executable(save-generator save-generator.c) | ||
target_link_modules(save-generator toxcore misc_tools) | ||
target_link_libraries(save-generator PRIVATE toxcore_static misc_tools) | ||
|
||
add_executable(strkey strkey.c) | ||
target_link_modules(strkey toxcore ${LIBSODIUM_LIBRARIES}) | ||
target_link_libraries(strkey PRIVATE toxcore_static ${LIBSODIUM_LIBRARIES}) | ||
|
||
add_executable(create_bootstrap_keys create_bootstrap_keys.c) | ||
target_link_modules(create_bootstrap_keys ${LIBSODIUM_LIBRARIES}) | ||
target_link_libraries(create_bootstrap_keys PRIVATE ${LIBSODIUM_LIBRARIES}) | ||
|
||
add_executable(create_minimal_savedata create_minimal_savedata.c) | ||
target_link_modules(create_minimal_savedata ${LIBSODIUM_LIBRARIES}) | ||
target_link_libraries(create_minimal_savedata PRIVATE ${LIBSODIUM_LIBRARIES}) | ||
|
||
add_executable(create_savedata create_savedata.c) | ||
target_link_modules(create_savedata toxcore ${LIBSODIUM_LIBRARIES}) | ||
target_link_libraries(create_savedata PRIVATE toxcore_static ${LIBSODIUM_LIBRARIES}) | ||
|
||
add_executable(sign sign.c) | ||
target_link_modules(sign ${LIBSODIUM_LIBRARIES} misc_tools) | ||
target_link_libraries(sign PRIVATE ${LIBSODIUM_LIBRARIES} misc_tools) | ||
|
||
add_executable(cracker_simple cracker_simple.c) | ||
target_link_modules(cracker_simple ${LIBSODIUM_LIBRARIES} misc_tools) | ||
target_link_libraries(cracker_simple PRIVATE ${LIBSODIUM_LIBRARIES} misc_tools) | ||
|
||
# MSVC doesn't support OpenMP | ||
if(NOT MSVC) | ||
find_package(OpenMP) | ||
if(OpenMP_C_FOUND) | ||
add_executable(cracker cracker.c) | ||
target_link_modules(cracker ${LIBSODIUM_LIBRARIES}) | ||
target_link_libraries(cracker OpenMP::OpenMP_C) | ||
target_link_libraries(cracker PRIVATE ${LIBSODIUM_LIBRARIES} OpenMP::OpenMP_C) | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters