From 165582f970c8466cacc3877aa68c5fea8187f56b Mon Sep 17 00:00:00 2001 From: MoustaphaSaad Date: Sat, 1 Jun 2024 23:20:35 +0300 Subject: wrap bn_unit ALLOW_MEMORY_GROWTH in if(EMSCRIPTEN) --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b475655..ae19e3b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -252,7 +252,9 @@ add_platform_test(bn_to_string bn_to_string) # bn_unit add_executable(bn_unit bn_unit.c) target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS}) -set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH") +if(EMSCRIPTEN) + set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH") +endif() add_platform_test(bn_unit bn_unit) # bn_word -- cgit v1.2.3-55-g6feb