Skip to content

Commit

Permalink
Adds flags -pedantic -Werror to build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp committed Apr 22, 2016
1 parent b5b8b07 commit 207c75e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ project(radix-tree)
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
install(FILES radix_tree.hpp radix_tree_it.hpp radix_tree_node.hpp DESTINATION include/radix_tree)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
# warnings disabled only for gtest headers (googletest is not perfect...)
set (gtest_no_warnings_headers "-Wno-long-long -Wno-variadic-macros -Wno-c++11-long-long")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror ${gtest_no_warnings_headers}")

option(BUILD_TESTS "Should we build tests?" OFF)

if (BUILD_TESTS)
Expand Down

0 comments on commit 207c75e

Please sign in to comment.