Răsfoiți Sursa

build: refine testbed config

skypjack 2 luni în urmă
părinte
comite
66d02050a8
1 a modificat fișierele cu 1 adăugiri și 6 ștergeri
  1. 1 6
      testbed/CMakeLists.txt

+ 1 - 6
testbed/CMakeLists.txt

@@ -25,12 +25,7 @@ FetchContent_Declare(
     GIT_SHALLOW 1
 )
 
-FetchContent_GetProperties(imgui)
-
-if(NOT imgui_POPULATED)
-    FetchContent_Populate(imgui)
-    set(imgui_INCLUDE_DIR ${imgui_SOURCE_DIR})
-endif()
+FetchContent_MakeAvailable(imgui)
 
 # Testbed executable