mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 17:29:02 +08:00
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index a292728cf4..5286b5e366 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -40,17 +40,6 @@ include(QuickCppLibRequireOutOfSourceBuild)
|
||
|
include(QuickCppLibUtils)
|
||
|
include(QuickCppLibPolicies)
|
||
|
|
||
|
-if(OUTCOME_BUNDLE_EMBEDDED_STATUS_CODE)
|
||
|
- ensure_git_subrepo("${CMAKE_CURRENT_SOURCE_DIR}/include/outcome/experimental/status-code/include" "https://github.com/ned14/status-code.git")
|
||
|
-else()
|
||
|
- find_quickcpplib_library(status-code
|
||
|
- GIT_REPOSITORY "https://github.com/ned14/status-code.git"
|
||
|
- GIT_TAG "${OUTCOME_DEPENDENCY_STATUS_CODE_GIT_TAG}"
|
||
|
- REQUIRED
|
||
|
- IS_HEADER_ONLY
|
||
|
- )
|
||
|
-endif()
|
||
|
-
|
||
|
# Parse the version we tell cmake directly from the version header file
|
||
|
ParseProjectVersionFromHpp("${CMAKE_CURRENT_SOURCE_DIR}/include/outcome/detail/version.hpp" VERSIONSTRING)
|
||
|
# Sets the usual PROJECT_NAME etc
|
||
|
@@ -99,8 +88,16 @@ else()
|
||
|
IS_HEADER_ONLY
|
||
|
)
|
||
|
endif()
|
||
|
-if (NOT OUTCOME_BUNDLE_EMBEDDED_STATUS_CODE)
|
||
|
- list_filter(${PROJECT_NAME}_HEADERS EXCLUDE REGEX /status-code/include/)
|
||
|
+if(OUTCOME_BUNDLE_EMBEDDED_STATUS_CODE)
|
||
|
+ ensure_git_subrepo("${CMAKE_CURRENT_SOURCE_DIR}/include/outcome/experimental/status-code/include" "https://github.com/ned14/status-code.git")
|
||
|
+else()
|
||
|
+ find_quickcpplib_library(status-code
|
||
|
+ GIT_REPOSITORY "https://github.com/ned14/status-code.git"
|
||
|
+ GIT_TAG "${OUTCOME_DEPENDENCY_STATUS_CODE_GIT_TAG}"
|
||
|
+ REQUIRED
|
||
|
+ IS_HEADER_ONLY
|
||
|
+ )
|
||
|
+ list_filter(${PROJECT_NAME}_HEADERS EXCLUDE REGEX include/outcome/experimental/status-code/)
|
||
|
endif()
|
||
|
|
||
|
# Make an interface only library so dependent CMakeLists can bring in this header-only library
|