set_property: Fix name of TARGET_DIRECTORY option in error messages

This commit is contained in:
Alexandru Croitor
2020-07-09 00:27:25 +02:00
committed by Brad King
parent 8adfa16e20
commit 177052d6b8
3 changed files with 5 additions and 5 deletions

View File

@@ -101,7 +101,7 @@ bool HandleSourceFileDirectoryScopes(
cmTarget* target = current_dir_mf->FindTargetToUse(target_name); cmTarget* target = current_dir_mf->FindTargetToUse(target_name);
if (!target) { if (!target) {
status.SetError(cmStrCat( status.SetError(cmStrCat(
"given non-existent target for DIRECTORY_TARGET ", target_name)); "given non-existent target for TARGET_DIRECTORY ", target_name));
return false; return false;
} }
cmProp target_source_dir = target->GetProperty("SOURCE_DIR"); cmProp target_source_dir = target->GetProperty("SOURCE_DIR");

View File

@@ -16,7 +16,7 @@ Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\) CMakeLists\.txt:[0-9]+ \(include\)
+ +
CMake Error at source_properties_failures.cmake:4 \(set_source_files_properties\): CMake Error at source_properties_failures.cmake:4 \(set_source_files_properties\):
set_source_files_properties given non-existent target for DIRECTORY_TARGET set_source_files_properties given non-existent target for TARGET_DIRECTORY
non_existing_target non_existing_target
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\) CMakeLists\.txt:[0-9]+ \(include\)
@@ -39,7 +39,7 @@ Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\) CMakeLists\.txt:[0-9]+ \(include\)
+ +
CMake Error at source_properties_failures.cmake:9 \(get_property\): CMake Error at source_properties_failures.cmake:9 \(get_property\):
get_property given non-existent target for DIRECTORY_TARGET get_property given non-existent target for TARGET_DIRECTORY
non_existing_dir non_existing_dir
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\) CMakeLists\.txt:[0-9]+ \(include\)
@@ -55,7 +55,7 @@ Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\) CMakeLists\.txt:[0-9]+ \(include\)
+ +
CMake Error at source_properties_failures.cmake:13 \(get_source_file_property\): CMake Error at source_properties_failures.cmake:13 \(get_source_file_property\):
get_source_file_property given non-existent target for DIRECTORY_TARGET get_source_file_property given non-existent target for TARGET_DIRECTORY
PROPERTY PROPERTY
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\) CMakeLists\.txt:[0-9]+ \(include\)

View File

@@ -16,7 +16,7 @@ Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\) CMakeLists\.txt:[0-9]+ \(include\)
+ +
CMake Error at SOURCE_FILE.cmake:4 \(set_property\): CMake Error at SOURCE_FILE.cmake:4 \(set_property\):
set_property given non-existent target for DIRECTORY_TARGET set_property given non-existent target for TARGET_DIRECTORY
non_existing_target non_existing_target
Call Stack \(most recent call first\): Call Stack \(most recent call first\):
CMakeLists\.txt:[0-9]+ \(include\)$ CMakeLists\.txt:[0-9]+ \(include\)$