diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-30 08:48:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-30 08:48:00 +0400 |
commit | f708318833d736af62441105382786bab303ab14 (patch) | |
tree | 2652dc638650066bdb4a3643bcdd1e2e423f7fa3 /build_files/cmake/macros.cmake | |
parent | f837b46a2b561293660a0edf9d4de5ff16922f42 (diff) |
correct flags for older GCC's which dont suppport -Wno-deprecated-declarations,
detect if the flag is supported before use
Diffstat (limited to 'build_files/cmake/macros.cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index 8e5d914948b..f767376d122 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -434,7 +434,7 @@ macro(remove_strict_flags_file if(CMAKE_COMPILER_IS_GNUCC) set_source_files_properties(${_SOURCE} PROPERTIES - COMPILE_FLAGS "-Wno-deprecated-declarations" + COMPILE_FLAGS "${CC_REMOVE_STRICT_FLAGS}" ) endif() |