aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoustaphaSaad <moustapha.saad.abdelhamed@gmail.com>2024-05-31 19:01:06 +0300
committerTheo Buehler <tb@openbsd.org>2024-06-19 14:06:09 +0200
commit7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec (patch)
tree36fec8a58711216ce1cf37c0623594dcdf8dcfe8
parentf149fbd99114127e06f97a9babd13ee1f520630b (diff)
downloadportable-7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec.tar.gz
portable-7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec.tar.bz2
portable-7d35c4c3f1447c6b6adf817e130eefd1e5ff96ec.zip
fix policy
added preload-file link flag to enable access to TEST_SOURCE_DIR
-rw-r--r--tests/CMakeLists.txt3
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)
556set_source_files_properties(policy.c PROPERTIES COMPILE_FLAGS 556set_source_files_properties(policy.c PROPERTIES COMPILE_FLAGS
557 -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") 557 -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\")
558target_link_libraries(policy ${OPENSSL_TEST_LIBS}) 558target_link_libraries(policy ${OPENSSL_TEST_LIBS})
559if(EMSCRIPTEN)
560 set_target_properties(policy PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}")
561endif()
559add_platform_test(policy policy) 562add_platform_test(policy policy)
560 563
561# pq_test 564# pq_test