CMakeLists.txt: Disable the "unused command line argument" warning on MinGW toolchains

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-05-14 16:54:23 +02:00
parent 617837fb91
commit 394fbec4c9
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ elseif(MINGW OR MSVC)
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CODENAME})
set(CPACK_NSIS_INSTALL_ROOT "${CMAKE_INSTALL_PREFIX}")
if (MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument")
set(CMAKE_EXE_LINKER_FLAGS "-static -static-libstdc++ -static-libgcc ${CMAKE_EXE_LINKER_FLAGS}")
endif()
set(CPACK_PACKAGE_FILE_NAME "${PNAME}_wpkg")