Skip to content

Commit eb5b908

Browse files
authored
Update CMakeLists.txt
1 parent cefbd97 commit eb5b908

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

unittests/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ if(WIN32)
3434
set_property(TARGET ${name} APPEND_STRING PROPERTY LINK_FLAGS "${MSVC_EXPORTS}")
3535
else()
3636
if(EMSCRIPTEN)
37-
target_link_libraries(${name} PUBLIC ${ARG_LIBRARIES} ${gtest_libs} clangCppInterOp)
37+
add_llvm_library(${name}
38+
DISABLE_LLVM_LINK_LLVM_DYLIB
39+
LINK_LIBS
40+
${gtest_libs} ${link_libs}
41+
)
3842
else()
3943
target_link_libraries(${name} PUBLIC ${ARG_LIBRARIES} ${gtest_libs} pthread)
4044
endif()

0 commit comments

Comments
 (0)