Files
CMake/Tests/RunCMake/target_compile_features/imported_target.cmake
Deniz Bahadir fe4b25ec2f Teach target_* commands to set INTERFACE properties of IMPORTED targets
Now, several `INTERFACE_*` properties can be set on `IMPORTED` targets,
not only via `set_property` and `set_target_properties` but also via
`target_compile_definitions`, `target_compile_features`,
`target_compile_options`, `target_include_directories`, `target_sources`
and `target_link_libraries`.

Fixes: #15689
Issue: #17197
2017-10-26 09:11:04 -04:00

11 lines
385 B
CMake

enable_language(CXX)
add_library(lib1-interface INTERFACE IMPORTED)
target_compile_features(lib1-interface INTERFACE cxx_delegating_constructors)
add_library(lib2-interface INTERFACE IMPORTED)
target_compile_features(lib2-interface PUBLIC cxx_delegating_constructors)
add_library(lib-shared SHARED IMPORTED)
target_compile_features(lib-shared INTERFACE cxx_delegating_constructors)