Skip to content

Commit

Permalink
Switched ImGUI to use FetchContent instead of external project so fil…
Browse files Browse the repository at this point in the history
…es are provided at configure time instead of build time.
  • Loading branch information
dbs4261 committed Mar 22, 2024
1 parent 16ec8ae commit 76e5f1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 3rdparty/imgui/imgui.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include(ExternalProject)
include(FetchContent)

ExternalProject_Add(
FetchContent_Declare(
ext_imgui
PREFIX imgui
URL https://github.com/ocornut/imgui/archive/refs/tags/v1.88.tar.gz
Expand All @@ -12,5 +12,5 @@ ExternalProject_Add(
INSTALL_COMMAND ""
)

ExternalProject_Get_Property(ext_imgui SOURCE_DIR)
set(IMGUI_SOURCE_DIR ${SOURCE_DIR})
FetchContent_Populate(ext_imgui)
FetchContent_GetProperties(ext_imgui SOURCE_DIR IMGUI_SOURCE_DIR)

0 comments on commit 76e5f1c

Please sign in to comment.