diff --git a/backend_test/example_sdl_opengl3/CMakeLists.txt b/backend_test/example_sdl_opengl3/CMakeLists.txt index 27a8009..39af7f3 100644 --- a/backend_test/example_sdl_opengl3/CMakeLists.txt +++ b/backend_test/example_sdl_opengl3/CMakeLists.txt @@ -103,7 +103,7 @@ target_link_libraries(cimgui_sdl ${IMGUI_LIBRARIES} ${IMGUI_SDL_LIBRARY}) #using library include_directories(../../generator/output/) add_executable(test_sdl main.c) -target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_SDL) +target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_SDL2) if (MINGW) target_link_options(test_sdl PRIVATE "-mconsole") endif() diff --git a/backend_test/example_sdl_vulkan/CMakeLists.txt b/backend_test/example_sdl_vulkan/CMakeLists.txt index e3510ac..55dba4a 100644 --- a/backend_test/example_sdl_vulkan/CMakeLists.txt +++ b/backend_test/example_sdl_vulkan/CMakeLists.txt @@ -92,7 +92,7 @@ target_link_libraries(cimgui_sdl ${IMGUI_LIBRARIES} ${IMGUI_SDL_LIBRARY}) #using library include_directories(../../generator/output/) add_executable(test_sdl main.c) -target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_VULKAN -DCIMGUI_USE_SDL) +target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_VULKAN -DCIMGUI_USE_SDL2) if (MINGW) target_link_options(test_sdl PRIVATE "-mconsole") endif()