summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-19 12:16:52 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-19 12:17:12 (GMT)
commit6f7853cb42b75715d38a71bce3123390b78a502a (patch)
tree2c7d2c297acbaa733d6623e279a60ef1f8a21128 /Source
parentc19b5765e13e49d71f57e7eb9772c758dd412bca (diff)
parent470b3a76b363951c343d5523bb9de77c9ba4bf16 (diff)
downloadCMake-6f7853cb42b75715d38a71bce3123390b78a502a.zip
CMake-6f7853cb42b75715d38a71bce3123390b78a502a.tar.gz
CMake-6f7853cb42b75715d38a71bce3123390b78a502a.tar.bz2
Merge topic 'get_filename_component-error-fatal'
470b3a76b3 get_filename_component: make errors fatal Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4914
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGetFilenameComponentCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGetFilenameComponentCommand.cxx b/Source/cmGetFilenameComponentCommand.cxx
index 811421a..38bffbf 100644
--- a/Source/cmGetFilenameComponentCommand.cxx
+++ b/Source/cmGetFilenameComponentCommand.cxx
@@ -14,6 +14,7 @@ bool cmGetFilenameComponentCommand(std::vector<std::string> const& args,
{
if (args.size() < 3) {
status.SetError("called with incorrect number of arguments");
+ cmSystemTools::SetFatalErrorOccured();
return false;
}
@@ -114,6 +115,7 @@ bool cmGetFilenameComponentCommand(std::vector<std::string> const& args,
} else {
std::string err = "unknown component " + args[2];
status.SetError(err);
+ cmSystemTools::SetFatalErrorOccured();
return false;
}