summaryrefslogtreecommitdiffstats
path: root/Source/cmCoreTryCompile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-09-21 20:03:08 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-10-02 14:17:31 (GMT)
commit0c07f390068fe5a9c3c99ebc64f6e6c72b6eff41 (patch)
tree89a4e61adfbb81b0194602a09f0052398d6100a0 /Source/cmCoreTryCompile.cxx
parent68caec9137f47fda219995db7cfdf588886c84a1 (diff)
downloadCMake-0c07f390068fe5a9c3c99ebc64f6e6c72b6eff41.zip
CMake-0c07f390068fe5a9c3c99ebc64f6e6c72b6eff41.tar.gz
CMake-0c07f390068fe5a9c3c99ebc64f6e6c72b6eff41.tar.bz2
cmExperimental: remove the flag for C++ modules
All the major compilers now have scheduled releases with support for scanning, so remove the experimental gate. Fixes: #18355
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r--Source/cmCoreTryCompile.cxx17
1 files changed, 4 insertions, 13 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index ee40bd5..6ca0e14 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -235,25 +235,16 @@ ArgumentParser::Continue cmCoreTryCompile::Arguments::SetSourceType(
this->SourceTypeContext = SourceType::Normal;
matched = true;
} else if (sourceType == "CXX_MODULE"_s) {
- bool const supportCxxModuleSources = cmExperimental::HasSupportEnabled(
- *this->Makefile, cmExperimental::Feature::CxxModuleCMakeApi);
- if (supportCxxModuleSources) {
- this->SourceTypeContext = SourceType::CxxModule;
- matched = true;
- }
+ this->SourceTypeContext = SourceType::CxxModule;
+ matched = true;
}
if (!matched && this->SourceTypeError.empty()) {
- bool const supportCxxModuleSources = cmExperimental::HasSupportEnabled(
- *this->Makefile, cmExperimental::Feature::CxxModuleCMakeApi);
- auto const* message = "'SOURCE'";
- if (supportCxxModuleSources) {
- message = "one of 'SOURCE' or 'CXX_MODULE'";
- }
// Only remember one error at a time; all other errors related to argument
// parsing are "indicate one error and return" anyways.
this->SourceTypeError =
- cmStrCat("Invalid 'SOURCE_TYPE' '", sourceType, "'; must be ", message);
+ cmStrCat("Invalid 'SOURCE_TYPE' '", sourceType,
+ "'; must be one of 'SOURCE' or 'CXX_MODULE'");
}
return ArgumentParser::Continue::Yes;
}