We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e67196f commit 3efa6c2Copy full SHA for 3efa6c2
1 file changed
test/CMakeLists.txt
@@ -61,7 +61,14 @@ set_target_properties(
61
)
62
# gersemi: on
63
64
-# CMAKE_SYSTEM_NAME refers to the target system
+if(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND MINGW)
65
+ # Make the GDExtension DLL self-contained (no external MinGW runtime DLLs)
66
+ target_link_options(${TARGET_NAME} PRIVATE "$<IF:$<BOOL:${MINGW}>,-static-libgcc;-static-libstdc++,>")
67
+
68
+ # Also ensure no undefined symbols
69
+ target_link_options(${TARGET_NAME} PRIVATE -Wl,--no-undefined)
70
+endif()
71
72
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
73
set_target_properties(
74
${TARGET_NAME}
0 commit comments