Skip to content

Commit 1716841

Browse files
ImGui: disable nontrivial-memcall warning on Clang versions >= 20.0
1 parent 6a82105 commit 1716841

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Imgui/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ endif()
101101

102102
set_common_target_properties(Diligent-Imgui)
103103

104+
if(("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 20.0))
105+
target_compile_options(Diligent-Imgui PUBLIC -Wno-nontrivial-memcall)
106+
endif()
107+
104108
target_include_directories(Diligent-Imgui
105109
PUBLIC
106110
interface

0 commit comments

Comments
 (0)