Skip to content

Commit

Permalink
Fix ImGui cmake file for SDL include path
Browse files Browse the repository at this point in the history
  • Loading branch information
dartfnm committed Oct 9, 2024
1 parent a4c447d commit 281d5b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/dear_imgui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.10)
project(imgui)

if (APPLE OR LINUX)
if (APPLE OR LINUX OR UNIX)
find_package(SDL2 REQUIRED)
endif()

Expand All @@ -21,7 +21,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/backends)
# Create static library
add_library(imgui STATIC ${IMGUI_SOURCES})

if (APPLE OR LINUX)
if (APPLE OR LINUX OR UNIX)
target_link_libraries(imgui PRIVATE ${SDL2_LIBRARIES})
else()
target_include_directories(imgui PRIVATE "${CMAKE_SOURCE_DIR}/external/sdl2/include")
Expand Down

0 comments on commit 281d5b5

Please sign in to comment.