Files
CMake/Tests/RunCMake/export/SymbolicComponent-check.cmake
T
Taylor Sasser d92b6c3e20 CPS: Add Symbolic Components
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
2025-10-02 10:46:02 -04:00

5 lines
215 B
CMake

file(READ "${RunCMake_TEST_BINARY_DIR}/foo.cmake" foo)
if("${foo}" MATCHES "add_library\(foo INTERFACE SYMBOLIC IMPORTED\)")
string(APPEND RunCMake_TEST_FAILED "Symbolic Component Foo was not exported\n")
endif()