1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-10-20 03:32:32 +03:00

Merge pull request #10239 from ronald-cron-arm/mbedtls-build-info-last

Improve detection of CMake library installation problems
This commit is contained in:
David Horstmann
2025-08-27 10:22:53 +00:00
committed by GitHub

View File

@@ -37,5 +37,11 @@ find_package(MbedTLS REQUIRED)
#
add_executable(cmake_package_install cmake_package_install.c)
string(REGEX MATCH "GNU" CMAKE_COMPILER_IS_GNU "${CMAKE_C_COMPILER_ID}")
if(CMAKE_COMPILER_IS_GNU)
target_compile_options(cmake_package_install PRIVATE -Wall -Werror)
endif()
target_link_libraries(cmake_package_install
MbedTLS::mbedtls MbedTLS::mbedx509 MbedTLS::tfpsacrypto)