Skip to content

Commit

Permalink
Renable -Werror compile option
Browse files Browse the repository at this point in the history
  • Loading branch information
RenfengLiu committed Aug 14, 2024
1 parent f8788c1 commit dc8ea5f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MSVC_DISABLED_WARNINGS} /MP /Zc:__cplusplus /std:c++17")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
-Werror \
-std=c++17 \
-fdiagnostics-color=always \
-Wno-nullability-completeness \
Expand All @@ -153,12 +154,6 @@ else()
-Wno-pointer-bool-conversion \
")

if (NOT PPX_BUILD_XR)
# OpenXR has way too many warnings to enable -Werror with it.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
-Werror \
")
endif ()
endif()

set(CMAKE_CXX_STANDARD 17)
Expand Down

0 comments on commit dc8ea5f

Please sign in to comment.