Skip to content

Commit

Permalink
Only build imgui_impl_dx9.cpp on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammie committed Jan 12, 2024
1 parent 54add07 commit 06062bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/editor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ if (NOT WIN32)
endif()

add_library(imgui_backend STATIC
"${CONAN_SRC_DIRS_IMGUI}/imgui_impl_dx9.cpp"
"${CONAN_SRC_DIRS_IMGUI}/imgui_impl_sdl2.cpp"
)
if (WIN32)
target_sources(imgui_backend PRIVATE "${CONAN_SRC_DIRS_IMGUI}/imgui_impl_dx9.cpp")
endif()

target_include_directories(imgui_backend PUBLIC ${CONAN_SRC_DIRS_IMGUI})
target_link_libraries(imgui_backend PUBLIC imgui ${SDL2_LIBRARIES} ${SYSTEM_DEPS})

Expand Down

0 comments on commit 06062bc

Please sign in to comment.