[boost-cobalt] Throw error in the configure step when the compiler is not supported (#42738)

Co-authored-by: jyu49 <yu_jack@apple.com>
This commit is contained in:
Jack·Boos·Yu 2024-12-31 02:14:39 +08:00 committed by GitHub
parent c2a3eb2d6a
commit 3fb435727d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 48 additions and 9 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a51d5285c..8374f911a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@ project(boost_cobalt VERSION "${BOOST_COBALT_VERSION}" LANGUAGES CXX)
include(cmake/CheckRequirements.cmake)
if (NOT BOOST_COBALT_REQUIREMENTS_MATCHED)
- return()
+ message(FATAL_ERROR "The current compiler is not supported.")
endif()
set(BOOST_COBALT_IS_ROOT OFF)

View File

@ -1,4 +1,4 @@
# Automatically generated by scripts/boost/generate-ports.ps1
# Automatically generated by scripts/boost/generate-ports.ps1
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -6,6 +6,9 @@ vcpkg_from_github(
REF boost-${VERSION}
SHA512 a92ff4050772b61035121f944d81d4a9d6d2da858dedc0956ad850132657c80c660a8839a99597443751744577dd5b0958239e99d948d3036c85b8361151aa27
HEAD_REF master
PATCHES
fail-on-compiler-not-supported.patch
)
set(FEATURE_OPTIONS "")

View File

@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-cobalt",
"version": "1.86.0",
"port-version": 1,
"description": "Boost cobalt module",
"homepage": "https://www.boost.org/libs/cobalt",
"license": "BSL-1.0",

View File

@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost",
"version": "1.86.0",
"port-version": 1,
"description": "Peer-reviewed portable C++ source libraries",
"homepage": "https://boost.org",
"license": "BSL-1.0",
@ -71,11 +72,6 @@
"name": "boost-circular-buffer",
"version>=": "1.86.0"
},
{
"name": "boost-cobalt",
"platform": "!osx & !ios & !android & !uwp",
"version>=": "1.86.0"
},
{
"name": "boost-compat",
"version>=": "1.86.0"
@ -627,6 +623,16 @@
}
],
"features": {
"cobalt": {
"description": "Build boost-cobalt",
"dependencies": [
{
"name": "boost-cobalt",
"platform": "!osx & !ios & !android & !uwp",
"version>=": "1.86.0"
}
]
},
"mpi": {
"description": "Build with MPI support",
"dependencies": [

View File

@ -28,7 +28,9 @@ $semverVersion = ($version -replace "(\d+(\.\d+){1,3}).*", "`$1")
# Clear this array when moving to a new boost version
$defaultPortVersion = 0
$portVersions = @{
'boost-build' = 1
'boost' = 1;
'boost-build' = 1;
'boost-cobalt' = 1
}
function Get-PortVersion {
@ -50,6 +52,10 @@ $portData = @{
"mpi" = @{
"description" = "Build with MPI support";
"dependencies" = @("boost-mpi", "boost-graph-parallel", "boost-property-map-parallel");
};
"cobalt" = @{
"description" = "Build boost-cobalt";
"dependencies" = @("boost-cobalt");
}
}
};

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3195a6c18219720b8c98b5d449ff39b95535122e",
"version": "1.86.0",
"port-version": 1
},
{
"git-tree": "d45758e6c62b46ef436df6cffe7803dfc3ba8f10",
"version": "1.86.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "15e0de9e647ed1ddf684158c8dc629544c2fe53b",
"version": "1.86.0",
"port-version": 1
},
{
"git-tree": "e16c1af1e47c7b94ac02c8f3c9ec0f4d3ea8f8f6",
"version": "1.86.0",

View File

@ -742,7 +742,7 @@
},
"boost": {
"baseline": "1.86.0",
"port-version": 0
"port-version": 1
},
"boost-accumulators": {
"baseline": "1.86.0",
@ -818,7 +818,7 @@
},
"boost-cobalt": {
"baseline": "1.86.0",
"port-version": 0
"port-version": 1
},
"boost-compat": {
"baseline": "1.86.0",