diff --git a/CMakeLists.txt b/CMakeLists.txt index 048e045..a4c8997 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,11 @@ target_compile_features(sw_protobuf PUBLIC cxx_std_17) target_link_libraries(sw_protobuf PUBLIC sw_protobuf_abseil sw_protobuf_utf8_range) target_include_directories(sw_protobuf PUBLIC ${STEINWURF_RESOLVE}/protobuf-source/src) +# Ignore -Wattribute warnings for GCC and Clang +if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang") + target_compile_options(sw_protobuf PRIVATE -Wno-attributes) +endif () + add_library(steinwurf::protobuf ALIAS sw_protobuf) # Is top level project? diff --git a/NEWS.rst b/NEWS.rst index c2f702e..bd88c8a 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -6,7 +6,7 @@ every change, see the Git log. Latest ------ -* tbd +* Patch: Ignore -Wattribute warnings for GCC and Clang. 2.0.5 -----