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:
@@ -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();
|
||||
}
|
||||
|
@@ -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\)
|
||||
|
@@ -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\)
|
||||
|
@@ -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\)
|
||||
|
Reference in New Issue
Block a user