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

Function HandleFileSetTargetScopeValidation

Source/cmSetPropertyCommand.cxx:112–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool HandleFileSetTargetScopeValidation(cmExecutionStatus& status,
113 bool file_set_target_option_enabled,
114 std::string& file_set_target_name)
115{
116 if (!file_set_target_option_enabled) {
117 status.SetError("required TARGET option is missing");
118 return false;
119 }
120
121 // Validate file set target scopes.
122 if (file_set_target_name.empty()) {
123 status.SetError("called with incorrect number of arguments "
124 "no value provided to the TARGET option");
125 return false;
126 }
127 return true;
128}
129
130bool HandleAndValidateFileSetTargetScopes(cmExecutionStatus& status,
131 bool file_set_target_option_enabled,

Callers 1

Calls 2

SetErrorMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…