mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 12:29:08 +08:00
31d77f607b
* [outcome] Update to version 2.2.3 * [outcome] Add license information * [outcome] Refactor deprecated functions * [status-code] Update to latest version compatible with outcome 2.2.3 * [outcome] Provide polyfill features and extract status-code * [outcome] Remove msvc linkage patch * [llfio] Teach port about outcome polyfills * [llfio] Fix vendored status-code include path * [outcome][status-code][llfio] update version database * Don't switch C++ standard version on polyfill feature * [outcome] Fix version entry Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
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
|