Skip to content

Commit d2f6f70

Browse files
committed
use target_link_options for TestSharedLib too
1 parent 03fe9d1 commit d2f6f70

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

unittests/CppInterOp/TestSharedLib/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ set_output_directory(TestSharedLib
1111

1212

1313
if (EMSCRIPTEN)
14-
set_target_properties(TestSharedLib PROPERTIES
15-
NO_SONAME 1
16-
LINK_FLAGS "-s WASM_BIGINT -s SIDE_MODULE=1"
14+
set_target_properties(TestSharedLib
15+
PROPERTIES NO_SONAME 1
16+
)
17+
target_link_options(TestSharedLib
18+
PRIVATE "SHELL: -s WASM_BIGINT"
19+
PRIVATE "SHELL: -s SIDE_MODULE=1"
1720
)
1821
endif()
1922

0 commit comments

Comments
 (0)