Skip to content

Commit 7e771c7

Browse files
gilles-peskine-armronald-cron-arm
authored andcommitted
Link test programs that only use platform functions with mbedcrypto
Even if other higher-level libraries were added, these programs would only link with the crypto library, which is the one that contains platform functions.
1 parent f66346e commit 7e771c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

programs/test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ target_link_libraries(benchmark ${libs})
1818

1919
if(TEST_CPP)
2020
add_executable(cpp_dummy_build cpp_dummy_build.cpp)
21-
target_link_libraries(cpp_dummy_build ${libs})
21+
target_link_libraries(cpp_dummy_build mbedcrypto)
2222
endif()
2323

2424
add_executable(udp_proxy udp_proxy.c)
2525
target_link_libraries(udp_proxy ${libs})
2626

2727
add_executable(zeroize zeroize.c)
28-
target_link_libraries(zeroize ${libs})
28+
target_link_libraries(zeroize mbedcrypto)
2929

3030
add_executable(query_compile_time_config query_compile_time_config.c)
3131
target_sources(query_compile_time_config PUBLIC query_config.c)
32-
target_link_libraries(query_compile_time_config ${libs})
32+
target_link_libraries(query_compile_time_config mbedcrypto)
3333

3434
install(TARGETS selftest benchmark udp_proxy query_compile_time_config
3535
DESTINATION "bin"

0 commit comments

Comments
 (0)