From 846bfc016c9b96f46510925e592d7c6ea0efa79b Mon Sep 17 00:00:00 2001 From: alextwothousand Date: Fri, 12 Dec 2025 19:31:06 +0000 Subject: [PATCH 1/3] pull toml11 from repo via fetchcontent --- CMakeLists.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67e758d6..63e63df5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,19 @@ project( include(cmake/StandardSettings.cmake) include(cmake/StaticAnalyzers.cmake) include(cmake/Git.cmake) +include(FetchContent) + +# Fetch packages before proceeding + +include(FetchContent) +FetchContent_Declare( + toml11 + GIT_REPOSITORY https://github.com/ToruNiina/toml11.git + GIT_TAG v4.4.0 +) +FetchContent_MakeAvailable(toml11) + +# done fetching packages # below are options which should be changed @@ -118,7 +131,7 @@ find_package(libzip CONFIG REQUIRED) find_package(RapidJSON CONFIG REQUIRED) find_package(sol2 CONFIG REQUIRED) find_package(CURL CONFIG REQUIRED) -add_subdirectory("deps/toml11") +#add_subdirectory("deps/toml11") include_directories(include) From 68f085cf2fdfe2cfa32e2cddd9bb4ab261252cd4 Mon Sep 17 00:00:00 2001 From: alextwothousand Date: Fri, 12 Dec 2025 19:40:00 +0000 Subject: [PATCH 2/3] remove toml11 as a submodule --- .gitmodules | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitmodules b/.gitmodules index 246ac767..05b2931f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,7 +3,4 @@ url = https://github.com/lionkor/commandline [submodule "vcpkg"] path = vcpkg - url = https://github.com/Microsoft/vcpkg.git -[submodule "deps/toml11"] - path = deps/toml11 - url = https://github.com/ToruNiina/toml11 + url = https://github.com/Microsoft/vcpkg.git \ No newline at end of file From e5ce6b95ce47c4724d222c197dd2ca05ec63248a Mon Sep 17 00:00:00 2001 From: alextwothousand Date: Fri, 12 Dec 2025 19:40:28 +0000 Subject: [PATCH 3/3] remove toml11 as submodule --- deps/toml11 | 1 - 1 file changed, 1 deletion(-) delete mode 160000 deps/toml11 diff --git a/deps/toml11 b/deps/toml11 deleted file mode 160000 index f33ca743..00000000 --- a/deps/toml11 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f33ca743fb105bf54293cc822f56cf2794d15bf2