Skip to content

Commit 0a504c0

Browse files
committed
tests: Add library to include path when used as submodule
Some tests use internal-only header files, which are stored in the 'library' folder, and therefore need the library folder passed in on the include path. For non-submoudle builds, this is set globally in the top-level CMakeLists.txt file. For submodule builds, this is set through target includes to a path only meaningful when Mbed Crypto is built as a submodule.
1 parent b55de7e commit 0a504c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function(add_test_suite suite_name)
5252
target_link_libraries(${exe_name} ${libs})
5353
target_include_directories(${exe_name}
5454
PUBLIC ${CMAKE_SOURCE_DIR}/include/
55-
PUBLIC ${CMAKE_SOURCE_DIR}/crypto/include/)
55+
PUBLIC ${CMAKE_SOURCE_DIR}/crypto/include/
56+
PRIVATE ${CMAKE_SOURCE_DIR}/crypto/library/)
5657

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

0 commit comments

Comments
 (0)