mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-06 15:19:56 -06:00
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
11 lines
385 B
CMake
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)
|