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 92
92
-DIMGUI_SFML_BUILD_EXAMPLES=ON \
93
93
-DIMGUI_SFML_BUILD_TESTING=ON \
94
94
-DIMGUI_SFML_ENABLE_WARNINGS=ON \
95
+ -DIMGUI_SFML_DISABLE_OBSOLETE_FUNCTIONS=ON \
95
96
${{matrix.platform.flags}} \
96
97
${{matrix.config.flags}}
97
98
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ project(imgui_sfml VERSION 2.6 LANGUAGES CXX)
4
4
option (IMGUI_SFML_FIND_SFML "Use find_package to find SFML" ON )
5
5
option (IMGUI_SFML_IMGUI_DEMO "Build imgui_demo.cpp" ON )
6
6
option (IMGUI_SFML_ENABLE_WARNINGS "Enable compiler warnings" OFF )
7
+ option (IMGUI_SFML_DISABLE_OBSOLETE_FUNCTIONS "Disable obsolete ImGui functions" OFF )
7
8
8
9
# If you want to use your own user config when compiling ImGui, please set the following variables
9
10
# 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)
84
85
set_target_properties (ImGui-SFML PROPERTIES DEFINE_SYMBOL "IMGUI_SFML_EXPORTS" )
85
86
set_target_properties (ImGui-SFML PROPERTIES DEBUG_POSTFIX "_d" )
86
87
endif ()
88
+ if (IMGUI_SFML_DISABLE_OBSOLETE_FUNCTIONS )
89
+ target_compile_definitions (ImGui-SFML PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS )
90
+ endif ()
87
91
88
92
# Add compiler warnings
89
93
if (IMGUI_SFML_ENABLE_WARNINGS )
You can’t perform that action at this time.
0 commit comments