mirror of https://github.com/openXC7/prjxray.git
cmake: Only add `-Wall and -Werror` for our code.
Fixes #127. Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
parent
31013a3e43
commit
8e6933fe26
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue