diff options
-rw-r--r-- | CMakeLists.txt | 12 | ||||
m--------- | discount | 0 |
2 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 52b78a2..f5d6b44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,15 @@ cmake_minimum_required(VERSION 3.21) -add_subdirectory(discount/cmake) + +include(FetchContent) +FetchContent_Declare( + discount + GIT_REPOSITORY "https://github.com/Orc/discount" + GIT_TAG "main" + SOURCE_DIR "discount" +) +FetchContent_MakeAvailable(discount) + +add_subdirectory(${discount_SOURCE_DIR}/cmake) project(msg C) diff --git a/discount b/discount deleted file mode 160000 -Subproject 878db10e91001b44a199ec60ac1fab2c766a225 |