File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,20 @@ target_link_libraries(memsed PRIVATE glad)
6767if (MEMSED_VENDORED_SDL3)
6868 set (SDL_STATIC ON )
6969 add_subdirectory ("${SDL3_DIR} " EXCLUDE_FROM_ALL )
70+ target_link_libraries (memsed PRIVATE SDL3-static )
7071else ()
7172 find_package (SDL3 REQUIRED CONFIG REQUIRED COMPONENTS SDL3-shared)
73+ target_link_libraries (memsed PRIVATE SDL3::SDL3)
7274endif ()
73- target_link_libraries (memsed PRIVATE SDL3::SDL3)
7475
7576# ImGui (via dcimgui bindings)
7677set (DCIMGUI_BACKENDS sdl3 opengl3)
7778add_subdirectory ("${DCIMGUI_DIR} " )
78- target_link_libraries (dcimgui PRIVATE SDL3::SDL3)
79+ if (MEMSED_VENDORED_SDL3)
80+ target_link_libraries (dcimgui PRIVATE SDL3-static )
81+ else ()
82+ target_link_libraries (dcimgui PRIVATE SDL3::SDL3)
83+ endif ()
7984target_link_libraries (dcimgui PRIVATE glad)
8085target_link_libraries (memsed PRIVATE dcimgui)
8186
You can’t perform that action at this time.
0 commit comments