Skip to content

Commit 3a36c5a

Browse files
committed
tests: Enable building with add_subdirectory()
When building Mbed Crypto when including it via CMake's `add_subdirectory()`, the tests are also built by default. This means all headers the tests need must be public, in order for the build of the tests to have access to the headers.
1 parent 9bdf8dd commit 3a36c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function(add_test_suite suite_name)
4545
target_include_directories(${exe_name}
4646
PUBLIC ${MBEDTLS_DIR}/include/
4747
PUBLIC ${MBEDTLS_DIR}/crypto/include/
48-
PRIVATE ${MBEDTLS_DIR}/crypto/library/)
48+
PUBLIC ${MBEDTLS_DIR}/crypto/library/)
4949

5050
if(${data_name} MATCHES ${SKIP_TEST_SUITES_REGEX})
5151
message(STATUS "The test suite ${data_name} will not be executed.")

0 commit comments

Comments
 (0)