fix: MINGW32 compiler error

This commit is contained in:
lilucpp
2025-03-27 00:04:47 +08:00
parent 3971468034
commit ea49fe862d
2 changed files with 4 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.4)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include/")
if (WIN32)
if (MINGW)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--allow-multiple-definition")
endif()