fix: MINGW32 compiler error

This commit is contained in:
lilucpp committed 2025-03-29 13:47:33 +08:00
1 parent 3971468034
commit ea49fe862d
2 files changed
+4 -19

No files matched your search

+1 -1
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()