diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-25 08:30:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-25 08:30:00 +0300 |
commit | f3b9fa53935e1f199063b020dded04135267b0a8 (patch) | |
tree | 09598861cb82469be75423d1ddea7048a57b0530 /build_files/cmake | |
parent | 574c716f2da740959a8cc593d8253c173a5c6d5c (diff) |
CMake: correct remove_strict_cxx_flags_file
Was still using C-flags.
Diffstat (limited to 'build_files/cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index d265b8ffad2..5d5425a9fc6 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -1124,7 +1124,7 @@ macro(remove_strict_c_flags_file filenames) foreach(_SOURCE ${ARGV}) if(CMAKE_COMPILER_IS_GNUCC OR - (CMAKE_C_COMPILER_ID MATCHES "Clang")) + (CMAKE_C_COMPILER_ID MATCHES "Clang")) set_source_files_properties(${_SOURCE} PROPERTIES COMPILE_FLAGS "${C_REMOVE_STRICT_FLAGS}" @@ -1142,10 +1142,10 @@ macro(remove_strict_cxx_flags_file remove_strict_c_flags_file(${filenames} ${ARHV}) foreach(_SOURCE ${ARGV}) if(CMAKE_COMPILER_IS_GNUCC OR - (CMAKE_C_COMPILER_ID MATCHES "Clang")) + (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) set_source_files_properties(${_SOURCE} PROPERTIES - COMPILE_FLAGS "${C_REMOVE_STRICT_FLAGS}" + COMPILE_FLAGS "${CXX_REMOVE_STRICT_FLAGS}" ) endif() if(MSVC) |