Disable strict compiler check on Windows with GCC (#927)

This commit is contained in:
Martin Chang 2021-07-11 12:29:37 +08:00 committed by GitHub
parent 3b600232be
commit f87a6ca1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ else (BUILD_DROGON_SHARED)
add_library(${PROJECT_NAME} STATIC)
endif (BUILD_DROGON_SHARED)
if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
if (NOT ${CMAKE_PLATFORM_NAME} STREQUAL "Windows" AND CMAKE_CXX_COMPILER_ID MATCHES GNU)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
endif ()

@ -1 +1 @@
Subproject commit a70a0ab4118100e809c828330e7c07e9b5b4466f
Subproject commit 15556700e5ce305c7d3fd5a970a58ef6b8297e0c