diff options
author | Brad King <brad.king@kitware.com> | 2022-05-03 15:20:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-03 15:20:26 (GMT) |
commit | 386496a5442851b7ed5fae2f5c94e4eb04c35ea2 (patch) | |
tree | 4bcc0270ecea92745d7b06cf31c8d4436a9878b9 /Source/cmFileSet.cxx | |
parent | ef10e61b6b7d3bb264cdbf72e143dbef7be8c736 (diff) | |
parent | c5b56b35c264664e897a2895e2561a5fb8287703 (diff) | |
download | CMake-386496a5442851b7ed5fae2f5c94e4eb04c35ea2.zip CMake-386496a5442851b7ed5fae2f5c94e4eb04c35ea2.tar.gz CMake-386496a5442851b7ed5fae2f5c94e4eb04c35ea2.tar.bz2 |
Merge topic 'cpp-modules-prep'
c5b56b35c2 cmInstallExportGenerator: expose the temporary directory
c107760417 cmNinjaTargetGenerator: support msvc-style deps discovery for scanning
64c15ec018 cmNinjaTargetGenerator: add flags for scanning based on the fileset type
aaa18f15cf cmTarget: add support for querying all file set names
cc4e19710d cmGlobalNinjaGenerator: use an extention based on the modmapfmt
97a68198c9 cmGlobalNinjaGenerator: escape `:` in module names
499009b79c cmTarget: avoid creating export entries if they don't exist
0513a1fe10 cmInstallGenerator: use CMake-private variables in generated code
...
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7214
Diffstat (limited to 'Source/cmFileSet.cxx')
-rw-r--r-- | Source/cmFileSet.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmFileSet.cxx b/Source/cmFileSet.cxx index 1d1d29e..d6665a2 100644 --- a/Source/cmFileSet.cxx +++ b/Source/cmFileSet.cxx @@ -45,9 +45,12 @@ cmFileSetVisibility cmFileSetVisibilityFromName(cm::string_view name, if (name == "PRIVATE"_s) { return cmFileSetVisibility::Private; } - mf->IssueMessage( - MessageType::FATAL_ERROR, - cmStrCat("File set visibility \"", name, "\" is not valid.")); + auto msg = cmStrCat("File set visibility \"", name, "\" is not valid."); + if (mf) { + mf->IssueMessage(MessageType::FATAL_ERROR, msg); + } else { + cmSystemTools::Error(msg); + } return cmFileSetVisibility::Private; } |