Skip to content

Commit

Permalink
static link libstdc++ (mingw)
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 14, 2024
1 parent 5e025b5 commit 323acb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ else()
if (CMAKE_BUILD_TYPE MATCHES "Debug")
target_compile_options(${PROJECT_NAME} PRIVATE -Og)
endif()
if (WIN32)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++")
endif()
endif()

if(VOXELENGINE_BUILD_WINDOWS_VCPKG AND WIN32)
Expand Down

0 comments on commit 323acb2

Please sign in to comment.