1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 12:16:40 +08:00

Genex: Fix grammatical error in TARGET_OBJECTS error message

This commit is contained in:
Kyle Edwards
2021-02-24 09:51:13 -05:00
parent d34d28e688
commit f31e8d33ef
4 changed files with 8 additions and 8 deletions

View File

@@ -1629,8 +1629,8 @@ static const struct TargetObjectsNode : public cmGeneratorExpressionNode
type != cmStateEnums::OBJECT_LIBRARY) {
std::ostringstream e;
e << "Objects of target \"" << tgtName
<< "\" referenced but is not an allowed library types (EXECUTABLE, "
<< "STATIC, SHARED, MODULE, OBJECT).";
<< "\" referenced but is not one of the allowed target types "
<< "(EXECUTABLE, STATIC, SHARED, MODULE, OBJECT).";
reportError(context, content->GetOriginalExpression(), e.str());
return std::string();
}

View File

@@ -3,7 +3,7 @@ CMake Error at OutputNameMatchesObjects.cmake:[0-9]+ \(file\):
\$<TARGET_OBJECTS:foo>
Objects of target "foo" referenced but is not an allowed library types
\(EXECUTABLE, STATIC, SHARED, MODULE, OBJECT\).
Objects of target "foo" referenced but is not one of the allowed target
types \(EXECUTABLE, STATIC, SHARED, MODULE, OBJECT\).
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)

View File

@@ -3,7 +3,7 @@ CMake Error at BadSourceExpression3.cmake:2 \(add_library\):
\$<TARGET_OBJECTS:NotObjLib>
Objects of target "NotObjLib" referenced but is not an allowed library
types \(EXECUTABLE, STATIC, SHARED, MODULE, OBJECT\).
Objects of target "NotObjLib" referenced but is not one of the allowed
target types \(EXECUTABLE, STATIC, SHARED, MODULE, OBJECT\).
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)

View File

@@ -3,7 +3,7 @@ CMake Error at NotObjlibTarget.cmake:[0-9]+ \(file\):
\$<TARGET_OBJECTS:IFaceLib>
Objects of target "IFaceLib" referenced but is not an allowed library types
\(EXECUTABLE, STATIC, SHARED, MODULE, OBJECT\).
Objects of target "IFaceLib" referenced but is not one of the allowed
target types \(EXECUTABLE, STATIC, SHARED, MODULE, OBJECT\).
Call Stack \(most recent call first\):
CMakeLists.txt:[0-9]+ \(include\)