Skip to content

Commit 2aea715

Browse files
authored
Update CMakeLists.txt
1 parent 686e853 commit 2aea715

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

unittests/CppInterOp/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ add_cppinterop_unittest(CppInterOpTests
2525

2626
if(EMSCRIPTEN)
2727
set_target_properties(CppInterOpTests PROPERTIES
28-
LINK_FLAGS "-s MAIN_MODULE=1 -s WASM_BIGINT"
28+
COMPILE_FLAGS "-s MAIN_MODULE=1"
29+
LINK_FLAGS "-s MAIN_MODULE=1 -s WASM_BIGINT"
2930
)
3031
endif()
3132
target_link_libraries(CppInterOpTests
@@ -65,8 +66,9 @@ target_link_libraries(DynamicLibraryManagerTests
6566
)
6667

6768
if(EMSCRIPTEN)
68-
target_link_options(DynamicLibraryManagerTests PRIVATE
69-
"SHELL: -s MAIN_MODULE=1 -s WASM_BIGINT"
69+
set_target_properties(DynamicLibraryManagerTests PROPERTIES
70+
COMPILE_FLAGS "-s MAIN_MODULE=1"
71+
LINK_FLAGS "-s MAIN_MODULE=1 -s WASM_BIGINT"
7072
)
7173
endif()
7274

0 commit comments

Comments
 (0)