Skip to content

Commit 7536cde

Browse files
committed
ignore Wnontrivial-memset (thanks imgui)
1 parent e605e96 commit 7536cde

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ target_sources(${PROJECT_NAME} PRIVATE
3434
${imgui_SOURCE_DIR}/misc/cpp/imgui_stdlib.cpp
3535
)
3636

37+
# Love you imgui
38+
include(CheckCXXCompilerFlag)
39+
check_cxx_compiler_flag(-Wnontrivial-memcall HAVE_NONTRIVIAL_MEMCALL)
40+
if (HAVE_NONTRIVIAL_MEMCALL)
41+
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-nontrivial-memcall)
42+
endif()
43+
3744
# i still dont like this (alk)
3845
target_compile_definitions(geode-sdk INTERFACE GEODE_EXPOSE_SECRET_INTERNALS_IN_HEADERS_DO_NOT_DEFINE_PLEASE)
3946

0 commit comments

Comments
 (0)