mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
d92b6c3e20
Adds support for "symbolic" components, which represent feature-level capabilities of a package that do not correspond to actual build targets. These are modeled as pseudo-targets, using the INTERFACE type as a base, and can be queried via: get_target_property(... <tgt> "SYMBOLIC") This enables consumers to declare requirements on optional features (e.g., SSL support) even when they do not map to concrete targets. Fixes: #27187
5 lines
120 B
CMake
5 lines
120 B
CMake
add_library(foo INTERFACE SYMBOLIC)
|
|
|
|
install(TARGETS foo EXPORT foo)
|
|
install(PACKAGE_INFO foo EXPORT foo DESTINATION .)
|