Merge pull request #131 from mithro/master

cmake: Only add `-Wall and -Werror` for our code.
This commit is contained in:
John McMaster 2018-10-02 13:30:08 -07:00 committed by GitHub
commit cd129ba84e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -9,9 +9,6 @@ if(NOT CMAKE_BUILD_TYPE)
FORCE)
endif()
set(CMAKE_CXX_STANDARD 14)
add_compile_options(-Wall -Werror)
# Hack for missing option in cctz
option(BUILD_TESTING "" OFF)
@ -30,5 +27,9 @@ target_include_directories(yaml-cpp PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third_party/yaml-cpp/include>
)
# Set the CXX standard and compile time for our code only.
set(CMAKE_CXX_STANDARD 14)
add_compile_options(-Wall -Werror)
add_subdirectory(lib)
add_subdirectory(tools)