Skip to content

Commit 1555670

Browse files
authored
Disable strict compiler check on Windows with GCC (#157)
1 parent 3dfcd70 commit 1555670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ else(BUILD_TRANTOR_SHARED)
4141
add_library(${PROJECT_NAME} STATIC)
4242
endif(BUILD_TRANTOR_SHARED)
4343

44-
if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
44+
if (NOT ${CMAKE_PLATFORM_NAME} STREQUAL "Windows" AND CMAKE_CXX_COMPILER_ID MATCHES GNU)
4545
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror)
4646
endif()
4747

0 commit comments

Comments
 (0)