mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-10 07:40:03 -06:00
In commit a1ad0a699b (target_link_libraries: Allow use with targets in
other directories, 2018-09-07, v3.13.0-rc1~94^2) we accidentally broke
the logic that adds `$<LINK_ONLY:...>` to private dependencies of static
libraries in their `INTERFACE_LINK_LIBRARIES` in the case that the
dependency is added from outside the directory creating the library.
The check for a valid target name should apply to the original name
specified by the caller and not the encoded cross-directory reference.
Fixes: #19197
21 lines
503 B
C
21 lines
503 B
C
#ifndef DEF_SameNameImportedSubDirA
|
|
# error "DEF_SameNameImportedSubDirA is not defined but should be!"
|
|
#endif
|
|
#ifndef DEF_SameNameImportedSubDirB
|
|
# error "DEF_SameNameImportedSubDirB is not defined but should be!"
|
|
#endif
|
|
#ifdef DEF_TopDirImported
|
|
# error "DEF_TopDirImported is defined but should not be!"
|
|
#endif
|
|
#ifdef DEF_SubDirC1
|
|
# error "DEF_SubDirC1 defined but should not be"
|
|
#endif
|
|
#ifdef DEF_SubDirC2
|
|
# error "DEF_SubDirC2 defined but should not be"
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
return 0;
|
|
}
|