Skip to content

Commit 5d5cdc5

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 91b790c commit 5d5cdc5

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
@@ -52,7 +52,7 @@ function(add_test_suite suite_name)
5252
target_include_directories(${exe_name}
5353
PUBLIC ${MBEDTLS_DIR}/include/
5454
PUBLIC ${MBEDTLS_DIR}/crypto/include/
55-
PRIVATE ${MBEDTLS_DIR}/crypto/library/)
55+
PUBLIC ${MBEDTLS_DIR}/crypto/library/)
5656

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

0 commit comments

Comments
 (0)