mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-23 04:26:46 -04:00
cmake: Fix library order
A library that depends on another one should come first in the list of libraries to link against. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
a3b562aa17
commit
d1e4ccf0a0
@ -35,4 +35,4 @@ find_package(MbedTLS REQUIRED)
|
||||
|
||||
add_executable(cmake_package cmake_package.c)
|
||||
target_link_libraries(cmake_package
|
||||
MbedTLS::tfpsacrypto MbedTLS::mbedtls MbedTLS::mbedx509)
|
||||
MbedTLS::mbedtls MbedTLS::mbedx509 MbedTLS::tfpsacrypto)
|
||||
|
@ -38,4 +38,4 @@ find_package(MbedTLS REQUIRED)
|
||||
|
||||
add_executable(cmake_package_install cmake_package_install.c)
|
||||
target_link_libraries(cmake_package_install
|
||||
MbedTLS::tfpsacrypto MbedTLS::mbedtls MbedTLS::mbedx509)
|
||||
MbedTLS::mbedtls MbedTLS::mbedx509 MbedTLS::tfpsacrypto)
|
||||
|
@ -14,9 +14,9 @@ add_subdirectory(${MBEDTLS_DIR} build)
|
||||
# Link against all the Mbed TLS libraries. Verifies that the targets have been
|
||||
# created using the specified prefix
|
||||
set(libs
|
||||
subproject_test_tfpsacrypto
|
||||
subproject_test_mbedx509
|
||||
subproject_test_mbedtls
|
||||
subproject_test_mbedx509
|
||||
subproject_test_tfpsacrypto
|
||||
)
|
||||
|
||||
add_executable(cmake_subproject cmake_subproject.c)
|
||||
|
@ -1,6 +1,6 @@
|
||||
set(libs
|
||||
${tfpsacrypto_target}
|
||||
${mbedx509_target}
|
||||
${tfpsacrypto_target}
|
||||
)
|
||||
|
||||
set(executables
|
||||
|
Loading…
x
Reference in New Issue
Block a user