mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
cmTargetPropCommandBase: Fix typo in error message
This commit is contained in:
@@ -17,11 +17,11 @@ bool cmTargetPropCommandBase::HandleArguments(
|
||||
return false;
|
||||
}
|
||||
|
||||
// Lookup the target for which libraries are specified.
|
||||
if (this->Makefile->IsAlias(args[0])) {
|
||||
this->SetError("can not be used on an ALIAS target.");
|
||||
return false;
|
||||
}
|
||||
// Lookup the target for which property-values are specified.
|
||||
this->Target =
|
||||
this->Makefile->GetCMakeInstance()->GetGlobalGenerator()->FindTarget(
|
||||
args[0]);
|
||||
@@ -92,8 +92,7 @@ bool cmTargetPropCommandBase::ProcessContentArgs(
|
||||
|
||||
if (this->Target->GetType() == cmStateEnums::INTERFACE_LIBRARY &&
|
||||
scope != "INTERFACE") {
|
||||
this->SetError("may only be set INTERFACE properties on INTERFACE "
|
||||
"targets");
|
||||
this->SetError("may only set INTERFACE properties on INTERFACE targets");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,25 +23,25 @@ Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
+
|
||||
CMake Error at target_commands.cmake:9 \(target_include_directories\):
|
||||
target_include_directories may only be set INTERFACE properties on
|
||||
INTERFACE targets
|
||||
target_include_directories may only set INTERFACE properties on INTERFACE
|
||||
targets
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
+
|
||||
CMake Error at target_commands.cmake:10 \(target_include_directories\):
|
||||
target_include_directories may only be set INTERFACE properties on
|
||||
INTERFACE targets
|
||||
target_include_directories may only set INTERFACE properties on INTERFACE
|
||||
targets
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
+
|
||||
CMake Error at target_commands.cmake:12 \(target_compile_definitions\):
|
||||
target_compile_definitions may only be set INTERFACE properties on
|
||||
INTERFACE targets
|
||||
target_compile_definitions may only set INTERFACE properties on INTERFACE
|
||||
targets
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
+
|
||||
CMake Error at target_commands.cmake:13 \(target_compile_definitions\):
|
||||
target_compile_definitions may only be set INTERFACE properties on
|
||||
INTERFACE targets
|
||||
target_compile_definitions may only set INTERFACE properties on INTERFACE
|
||||
targets
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
CMake Error at invalid_args_on_interface.cmake:[0-9]+ \(target_compile_features\):
|
||||
target_compile_features may only be set INTERFACE properties on INTERFACE
|
||||
target_compile_features may only set INTERFACE properties on INTERFACE
|
||||
targets
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
|
||||
Reference in New Issue
Block a user