cmake: set warning and error options

The set is far from perfect, but guards against common errors with GCC.
This commit is contained in:
Eugene Shalygin 2017-04-27 14:35:28 +02:00
commit c4e16aa820
9 changed files with 147 additions and 7 deletions

View file

@ -30,7 +30,6 @@ add_definitions(-DQBT_VERSION="v${PROJECT_VERSION}")
add_definitions(-DQBT_VERSION_2="${PROJECT_VERSION}")
# }
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Og")
if (UNIX AND NOT APPLE)
include(GNUInstallDirs)
endif (UNIX AND NOT APPLE)