Skip to content

Commit

Permalink
cmake: Only add -Wall and -Werror for our code.
Browse files Browse the repository at this point in the history
Fixes f4pga#127.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
  • Loading branch information
mithro committed Sep 27, 2018
1 parent 31013a3 commit 8e6933f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

0 comments on commit 8e6933f

Please sign in to comment.