Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt12
1 files changed, 1 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 60d808f8..e08b4ba2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,17 +29,7 @@ include(QuickCppLibPolicies)
option(LLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE "Whether to use SG14 status_code for failure handling" OFF)
-if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/include/llfio/ntkernel-error-category/include")
- include(FindGit)
- message(STATUS "NOTE: Running ${GIT_EXECUTABLE} submodule update --init --recursive ...")
- execute_process(COMMAND "${GIT_EXECUTABLE}" submodule update --init --recursive
- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
- RESULT_VARIABLE retcode
- )
- if(retcode)
- message(FATAL_ERROR "FATAL: git submodule update failed with code ${retcode}")
- endif()
-endif()
+ensure_git_subrepo("${CMAKE_CURRENT_SOURCE_DIR}/include/llfio/ntkernel-error-category/include" "https://github.com/ned14/ntkernel-error-category.git")
# Parse the version we tell cmake directly from the version header file
ParseProjectVersionFromHpp("${CMAKE_CURRENT_SOURCE_DIR}/include/llfio/version.hpp" VERSIONSTRING)