Skip to content

Commit

Permalink
smesh: [skip ci] suppress C++17 related warnings about extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 27, 2021
1 parent fcf5a13 commit 5dacdd8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/3rdParty/salomesmesh/CMakeLists.txt
Expand Up @@ -46,6 +46,12 @@ elseif(CMAKE_COMPILER_IS_CLANGXX)
if (_flag_found)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-field-initializers")
endif ()

unset(_flag_found CACHE)
check_cxx_compiler_flag("-Wno-c++17-extensions" _flag_found)
if (_flag_found)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++17-extensions")
endif ()
endif()


Expand Down

0 comments on commit 5dacdd8

Please sign in to comment.