diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2019-03-28 11:16:00 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2019-03-28 11:16:00 -0400 |
commit | 30e0bac5faa32948a26f523de66cf066fd38d223 (patch) | |
tree | 2e3390c89185f67f9a4b7c329d682b2e94f00c26 | |
parent | 91d2c60cd368a5c974caa8af39c4a8233409ade5 (diff) | |
download | sdl_core-30e0bac5faa32948a26f523de66cf066fd38d223.tar.gz |
Change cmake flags to exclude some warnings from -Werror
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f6ee77a143..3f8f726fcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -236,7 +236,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}) set(ARCHIVE_OUTPUT_DIRECTORY ./bin) -set(CMAKE_CXX_FLAGS "-fPIC -std=gnu++0x -Wall -Werror -Wuninitialized -Wvla") +set(EXCLUDE_ERROR_FLAGS "-Wno-error=unused-variable -Wno-error=unused-const-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations") +set(CMAKE_CXX_FLAGS "-fPIC -std=gnu++0x -Wall -Werror ${EXCLUDE_ERROR_FLAGS} -Wuninitialized -Wvla") if (USE_GOLD_LD) execute_process(COMMAND ld -v OUTPUT_VARIABLE result) |