diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-02-27 14:26:31 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-02-27 14:26:31 +0300 |
commit | c72be83bbc011c7d97414beb82c4e14c9d34ae5a (patch) | |
tree | c094a9ac4d84ef893af317d07440997d5bba82a0 /CMakeLists.txt | |
parent | 5dc04e3fde056fed5ef50c0b7e59773090c5880a (diff) |
Move subrepo ensure code into quickcpplib
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
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) |