--- CMakeLists.txt 2026-07-02 15:33:45.000000000 +0800 +++ CMakeLists.txt 2026-07-11 01:35:25.000000000 +0800 @@ -10,47 +10,9 @@ # Dependencies ----------------------------------------------------------------- -include(FetchContent) -set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE) -set(FETCHCONTENT_QUIET FALSE) - -FetchContent_Declare(ftxui - GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui - GIT_TAG v7.0.0 - GIT_PROGRESS TRUE - GIT_SHALLOW FALSE - EXCLUDE_FROM_ALL - FIND_PACKAGE_ARGS - 7.0.0 - NAMES ftxui -) - -FetchContent_Declare(nlohmann_json - URL https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz - EXCLUDE_FROM_ALL - FIND_PACKAGE_ARGS - 3.12.0 # Breaking change nlohmann/json/pull/4517 - NAMES nlohmann_json -) - -FetchContent_Declare(args - GIT_REPOSITORY https://github.com/Taywee/args - GIT_TAG 114200a9ad5fe06c8dea76e15d92325695cf3e34 - EXCLUDE_FROM_ALL - GIT_PROGRESS TRUE - GIT_SHALLOW FALSE - FIND_PACKAGE_ARGS - 6.4.7 - NAMES args -) - -FetchContent_GetProperties(ftxui) -FetchContent_GetProperties(nlohmann_json) -FetchContent_GetProperties(args) - -FetchContent_MakeAvailable(ftxui) -FetchContent_MakeAvailable(nlohmann_json) -FetchContent_MakeAvailable(args) +find_package(ftxui REQUIRED) +find_package(nlohmann_json REQUIRED) +find_package(args REQUIRED) # Build ------------------------------------------------------------------------