|
|
@@ -2,13 +2,13 @@
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
|
#include "cmDefinePropertyCommand.h"
|
|
|
|
|
|
-#include <cm/string_view>
|
|
|
#include <cmext/string_view>
|
|
|
|
|
|
#include "cmArgumentParser.h"
|
|
|
#include "cmExecutionStatus.h"
|
|
|
#include "cmMakefile.h"
|
|
|
#include "cmProperty.h"
|
|
|
+#include "cmRange.h"
|
|
|
#include "cmState.h"
|
|
|
#include "cmStringAlgorithms.h"
|
|
|
|
|
|
@@ -71,16 +71,6 @@ bool cmDefinePropertyCommand(std::vector<std::string> const& args,
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- // Make sure documentation was given.
|
|
|
- if (BriefDocs.empty()) {
|
|
|
- status.SetError("not given a BRIEF_DOCS <brief-doc> argument.");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (FullDocs.empty()) {
|
|
|
- status.SetError("not given a FULL_DOCS <full-doc> argument.");
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
// Actually define the property.
|
|
|
status.GetMakefile().GetState()->DefineProperty(
|
|
|
PropertyName, scope, cmJoin(BriefDocs, ""), cmJoin(FullDocs, ""),
|