diff options
author | MoustaphaSaad <moustapha.saad.abdelhamed@gmail.com> | 2024-05-31 19:01:06 +0300 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-06-19 14:06:09 +0200 |
commit | 7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec (patch) | |
tree | 36fec8a58711216ce1cf37c0623594dcdf8dcfe8 /tests | |
parent | f149fbd99114127e06f97a9babd13ee1f520630b (diff) | |
download | portable-7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec.tar.gz portable-7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec.tar.bz2 portable-7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec.zip |
fix policy
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 67d15f1..82e5ad3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -556,6 +556,9 @@ add_executable(policy policy.c) | |||
556 | set_source_files_properties(policy.c PROPERTIES COMPILE_FLAGS | 556 | set_source_files_properties(policy.c PROPERTIES COMPILE_FLAGS |
557 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | 557 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") |
558 | target_link_libraries(policy ${OPENSSL_TEST_LIBS}) | 558 | target_link_libraries(policy ${OPENSSL_TEST_LIBS}) |
559 | if(EMSCRIPTEN) | ||
560 | set_target_properties(policy PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}") | ||
561 | endif() | ||
559 | add_platform_test(policy policy) | 562 | add_platform_test(policy policy) |
560 | 563 | ||
561 | # pq_test | 564 | # pq_test |