Fix diagram generation using LLVM 17 (Fixes #190)

This commit is contained in:
Bartek Kryza
2023-10-13 18:46:30 +02:00
parent e7d6c94a14
commit a7b4efa80e
4 changed files with 6 additions and 6 deletions

View File

@@ -137,7 +137,9 @@ endif()
# and environment quirks
#
if(LLVM_VERSION_MAJOR GREATER_EQUAL 17)
set(CUSTOM_COMPILE_OPTIONS "-Wno-class-memaccess")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CUSTOM_COMPILE_OPTIONS "-Wno-class-memaccess")
endif()
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CUSTOM_COMPILE_OPTIONS