mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 10:48:38 -06:00
cmTargetPropertyComputer: whitelist 'MANUALLY_ADDED_DEPENDENCIES'.
This commit is contained in:
@@ -978,6 +978,7 @@ are:
|
|||||||
* Built-in properties matching ``COMPATIBLE_INTERFACE_*``
|
* Built-in properties matching ``COMPATIBLE_INTERFACE_*``
|
||||||
* ``EXPORT_NAME``
|
* ``EXPORT_NAME``
|
||||||
* ``IMPORTED``
|
* ``IMPORTED``
|
||||||
|
* ``MANUALLY_ADDED_DEPENDENCIES``
|
||||||
* ``NAME``
|
* ``NAME``
|
||||||
* Properties matching ``IMPORTED_LIBNAME_*``
|
* Properties matching ``IMPORTED_LIBNAME_*``
|
||||||
* Properties matching ``MAP_IMPORTED_CONFIG_*``
|
* Properties matching ``MAP_IMPORTED_CONFIG_*``
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ bool cmTargetPropertyComputer::WhiteListedInterfaceProperty(
|
|||||||
builtIns.insert("EXPORT_NAME");
|
builtIns.insert("EXPORT_NAME");
|
||||||
builtIns.insert("IMPORTED");
|
builtIns.insert("IMPORTED");
|
||||||
builtIns.insert("IMPORTED_GLOBAL");
|
builtIns.insert("IMPORTED_GLOBAL");
|
||||||
|
builtIns.insert("MANUALLY_ADDED_DEPENDENCIES");
|
||||||
builtIns.insert("NAME");
|
builtIns.insert("NAME");
|
||||||
builtIns.insert("TYPE");
|
builtIns.insert("TYPE");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ add_library(item_real STATIC item.cpp)
|
|||||||
add_library(item_iface INTERFACE IMPORTED)
|
add_library(item_iface INTERFACE IMPORTED)
|
||||||
set_property(TARGET item_iface PROPERTY IMPORTED_LIBNAME item_real)
|
set_property(TARGET item_iface PROPERTY IMPORTED_LIBNAME item_real)
|
||||||
add_dependencies(item_iface item_real)
|
add_dependencies(item_iface item_real)
|
||||||
|
get_property(item_iface_dependencies TARGET item_iface PROPERTY MANUALLY_ADDED_DEPENDENCIES)
|
||||||
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
add_executable(InterfaceLibrary definetestexe.cpp)
|
add_executable(InterfaceLibrary definetestexe.cpp)
|
||||||
|
|||||||
Reference in New Issue
Block a user