File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 9292 -DIMGUI_SFML_BUILD_EXAMPLES=ON \
9393 -DIMGUI_SFML_BUILD_TESTING=ON \
9494 -DIMGUI_SFML_ENABLE_WARNINGS=ON \
95+ -DIMGUI_SFML_DISABLE_OBSOLETE_FUNCTIONS=ON \
9596 ${{matrix.platform.flags}} \
9697 ${{matrix.config.flags}}
9798
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ project(imgui_sfml VERSION 2.6 LANGUAGES CXX)
44option (IMGUI_SFML_FIND_SFML "Use find_package to find SFML" ON )
55option (IMGUI_SFML_IMGUI_DEMO "Build imgui_demo.cpp" ON )
66option (IMGUI_SFML_ENABLE_WARNINGS "Enable compiler warnings" OFF )
7+ option (IMGUI_SFML_DISABLE_OBSOLETE_FUNCTIONS "Disable obsolete ImGui functions" OFF )
78
89# If you want to use your own user config when compiling ImGui, please set the following variables
910# For example, if you have your config in /path/to/dir/with/config/myconfig.h, set the variables as follows:
@@ -84,6 +85,9 @@ if(BUILD_SHARED_LIBS)
8485 set_target_properties (ImGui-SFML PROPERTIES DEFINE_SYMBOL "IMGUI_SFML_EXPORTS" )
8586 set_target_properties (ImGui-SFML PROPERTIES DEBUG_POSTFIX "_d" )
8687endif ()
88+ if (IMGUI_SFML_DISABLE_OBSOLETE_FUNCTIONS)
89+ target_compile_definitions (ImGui-SFML PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS)
90+ endif ()
8791
8892# Add compiler warnings
8993if (IMGUI_SFML_ENABLE_WARNINGS)
You can’t perform that action at this time.
0 commit comments