MCPcopy Create free account
hub / github.com/Kitware/CMake / HandleTestDirectoryScopeValidation

Function HandleTestDirectoryScopeValidation

Source/cmSetPropertyCommand.cxx:271–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271bool HandleTestDirectoryScopeValidation(cmExecutionStatus& status,
272 bool test_directory_option_enabled,
273 std::string& test_directory)
274{
275 // Validate source file directory scopes.
276 if (test_directory_option_enabled && test_directory.empty()) {
277 std::string errors = "called with incorrect number of arguments "
278 "no value provided to the DIRECTORY option";
279 status.SetError(errors);
280 return false;
281 }
282 return true;
283}
284
285bool HandleAndValidateTestDirectoryScopes(cmExecutionStatus& status,
286 bool test_directory_option_enabled,

Callers 1

Calls 2

emptyMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…