Skip to content

Commit

Permalink
cmake: remove no longer needed compiler flags from imgui files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 11, 2024
1 parent da2a391 commit 5d45e40
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -379,16 +379,9 @@ else()
endif()

target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-trigraphs)
set_source_files_properties(${IMGUI_DIR}/imgui.cpp PROPERTIES COMPILE_FLAGS "-Wno-unused-variable")

set_source_files_properties(${IMGUI_COLOR_TEXT_EDIT_DIR}/TextEditor.cpp
PROPERTIES COMPILE_FLAGS "-Wno-unused-variable -Wno-sign-compare")

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# Disable warning: specified size between ??? and ??? exceeds maximum object size ???
set_source_files_properties(${IMGUI_DIR}/imgui_draw.cpp PROPERTIES COMPILE_FLAGS "-Wno-stringop-overflow")
endif()

# Disable C++ exceptions and RTTI
# target_compile_options() doesn't fit very well as GCC complains on every C file
# warning: command-line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
Expand Down

0 comments on commit 5d45e40

Please sign in to comment.