diff options
author | MoustaphaSaad <moustapha.saad.abdelhamed@gmail.com> | 2024-05-31 18:50:44 +0300 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-06-19 14:06:09 +0200 |
commit | 61fb99c80bba70080b48689560b0dc1fe1c5f01f (patch) | |
tree | affa3c519f1262ad0c4f674406a27ac0d6e17c01 /tests | |
parent | 3d9c9cf5b0f7867fdcc04ca928e15b44c3ccb243 (diff) | |
download | portable-61fb99c80bba70080b48689560b0dc1fe1c5f01f.tar.gz portable-61fb99c80bba70080b48689560b0dc1fe1c5f01f.tar.bz2 portable-61fb99c80bba70080b48689560b0dc1fe1c5f01f.zip |
fix cttest
added preload-file link flag to enable access to TEST_SOURCE_DIR
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f52a17b..a0d0606 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -323,6 +323,9 @@ add_executable(cttest cttest.c) | |||
323 | target_link_libraries(cttest ${OPENSSL_TEST_LIBS}) | 323 | target_link_libraries(cttest ${OPENSSL_TEST_LIBS}) |
324 | set_source_files_properties(cttest.c PROPERTIES COMPILE_FLAGS | 324 | set_source_files_properties(cttest.c PROPERTIES COMPILE_FLAGS |
325 | -DCTPATH=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | 325 | -DCTPATH=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") |
326 | if(EMSCRIPTEN) | ||
327 | set_target_properties(cttest PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}") | ||
328 | endif() | ||
326 | add_platform_test(cttest cttest) | 329 | add_platform_test(cttest cttest) |
327 | 330 | ||
328 | # destest | 331 | # destest |