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:
parent
617837fb91
commit
394fbec4c9
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue