We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce457e commit 85981f5Copy full SHA for 85981f5
CMakeLists.txt
@@ -47,7 +47,9 @@ set(_picky "")
47
48
option(TRURL_WERROR "Turn compiler warnings into errors" OFF)
49
if(TRURL_WERROR)
50
- if(MSVC)
+ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
51
+ set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
52
+ elseif(MSVC)
53
list(APPEND _picky "-WX")
54
else() # llvm/clang and gcc style options
55
list(APPEND _picky "-Werror")
0 commit comments