Skip to content

Commit

Permalink
Add compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuZins committed Jan 31, 2019
1 parent 57a1562 commit 85540f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ project(VeloView)

set (CMAKE_CXX_STANDARD 11)

if (MSVC)
# warning level all
add_compile_options(/Wall)
else()
# warning level all and extra
add_compile_options(-Wall -Wextra)
endif()

# Disallow in-source build
if ("${VeloView_SOURCE_DIR}" STREQUAL "${VeloView_BINARY_DIR}")
message(FATAL_ERROR
Expand Down

0 comments on commit 85540f3

Please sign in to comment.