Skip to content

Commit

Permalink
cmake: drop -Werror from c++ flags
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans committed Sep 7, 2016
1 parent bd839cc commit af565e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ else()
endif()

if(NOT MSVC)
set(CMAKE_CXX_FLAGS "-Wall -Werror -g -Wextra -Wshadow -pedantic ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-Wall -g -Wextra -Wshadow -pedantic ${CMAKE_CXX_FLAGS}")
option(DONT_INJECT_WERROR "Don't inject '-Werror' into the C++ compiler flags" OFF)
if(NOT DONT_INJECT_WERROR)
set(CMAKE_CXX_FLAGS "-Werror ${CMAKE_CXX_FLAGS}")
endif(NOT DONT_INJECT_WERROR)
if(CMAKE_VERSION VERSION_LESS 3.1)
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
else()
Expand Down

0 comments on commit af565e6

Please sign in to comment.