We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41e04d3 commit 0dde42cCopy full SHA for 0dde42c
1 file changed
src/CMakeLists.txt
@@ -41,7 +41,11 @@ if(WIN32)
41
target_compile_definitions(lbug INTERFACE LBUG_STATIC_DEFINE)
42
endif()
43
44
-if(NOT WIN32)
+if(EMSCRIPTEN)
45
+ # Emscripten forces SHARED->STATIC, so give it a distinct name to avoid
46
+ # two targets both emitting liblbug.a (Ninja rejects duplicate rules).
47
+ set_target_properties(lbug_shared PROPERTIES OUTPUT_NAME lbug_shared)
48
+elseif(NOT WIN32)
49
set_target_properties(lbug_shared PROPERTIES OUTPUT_NAME lbug)
50
51
0 commit comments