Skip to content

Commit 08e3ca3

Browse files
authored
Update CMakeLists.txt
1 parent 8d83b9b commit 08e3ca3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

unittests/CppInterOp/CMakeLists.txt

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

2626
if(EMSCRIPTEN)
2727
if (SYSROOT_PATH MATCHES "@")
28-
execute_process(
29-
COMMAND ln -s ${SYSROOT_PATH} ${CMAKE_CURRENT_BINARY_DIR}
30-
)
31-
set(SYSROOT_PATH "./sysroot/")
28+
string(REPLACE "@" "@@" SYSROOT_PATH "${SYSROOT_PATH}")
3229
endif()
3330
# Explanation of Emscripten-specific link flags for CppInterOpTests:
3431
#
@@ -104,10 +101,7 @@ target_link_libraries(DynamicLibraryManagerTests
104101
if(EMSCRIPTEN)
105102
set(TEST_SHARED_LIBRARY_PATH "${CMAKE_CURRENT_BINARY_DIR}/TestSharedLib/unittests/bin/Release/")
106103
if (TEST_SHARED_LIBRARY_PATH MATCHES "@")
107-
execute_process(
108-
COMMAND ln -s ${TEST_SHARED_LIBRARY_PATH} ${CMAKE_CURRENT_BINARY_DIR}
109-
)
110-
set(TEST_SHARED_LIBRARY_PATH "./Release/")
104+
string(REPLACE "@" "@@" TEST_SHARED_LIBRARY_PATH "${TEST_SHARED_LIBRARY_PATH}")
111105
endif()
112106
# Check explanation of Emscripten-specific link flags for CppInterOpTests above for DynamicLibraryManagerTests as well.
113107
target_link_options(DynamicLibraryManagerTests

0 commit comments

Comments
 (0)