Fixed linker warnings on plugins

This commit is contained in:
WerWolv 2021-02-02 00:39:47 +01:00
parent 29f50bb70b
commit fa352b6917
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_SHARED_LIBRARY_PREFIX "plugin") set(CMAKE_SHARED_LIBRARY_PREFIX "plugin")
if (WIN32) if (WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -Wl,--allow-multiple-definition -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -Wl,--allow-multiple-definition")
endif() endif()
if (NOT TARGET libimhex) if (NOT TARGET libimhex)

View File

@ -21,7 +21,7 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_SHARED_LIBRARY_PREFIX "plugin") set(CMAKE_SHARED_LIBRARY_PREFIX "plugin")
if (WIN32) if (WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -Wl,--allow-multiple-definition -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -Wl,--allow-multiple-definition")
endif() endif()
if (NOT TARGET libimhex) if (NOT TARGET libimhex)