Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 0442f59

Browse files
mimi89999dlech
authored andcommitted
Add GCC and Clang compile options
1 parent 11c4b8d commit 0442f59

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if (MSVC)
2424
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.20.27404.0")
2525
string(APPEND CMAKE_CXX_FLAGS " /d2FH4")
2626
endif()
27+
else()
28+
add_compile_options(-Werror)
2729
endif()
2830

2931
# strip suffix to allow support for prerelease version

0 commit comments

Comments
 (0)