Files
cmake/Tests/RunCMake/cmake_language/PrintPropertiesRegexWithNamed.cmake
T
Tom Osika 2a2012e913 cmake_language: Add PRINT_PROPERTIES operation
Print CMake entities' properties in human-readable form for debugging.

Issue: #27513
2026-08-10 17:41:05 -04:00

11 lines
216 B
CMake

enable_language(C)
add_library(mylib STATIC nothing.c)
# Regex filters require ALL; combining with NAMED is an error.
cmake_language(
PRINT_PROPERTIES
TARGETS mylib
NAMED MY_PROP
PROPERTY_NAME_REGEX "MY_"
)