From 7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec Mon Sep 17 00:00:00 2001 From: MoustaphaSaad Date: Fri, 31 May 2024 19:01:06 +0300 Subject: fix policy added preload-file link flag to enable access to TEST_SOURCE_DIR --- tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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) set_source_files_properties(policy.c PROPERTIES COMPILE_FLAGS -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") target_link_libraries(policy ${OPENSSL_TEST_LIBS}) +if(EMSCRIPTEN) + set_target_properties(policy PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}") +endif() add_platform_test(policy policy) # pq_test -- cgit v1.2.3-55-g6feb