Files
cmake/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg.cmake
Tom Osika 048ee670f2 cmake_print_properties: Deprecate in favor of cmake_language(PRINT_PROPERTIES)
Re-implement it in terms of the replacement command.

Issue: #27513
2026-08-10 17:45:47 -04:00

12 lines
280 B
CMake

include(CMakePrintHelpers)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/stub.c" "void stub(void) {}\n")
add_library(mylib STATIC "${CMAKE_CURRENT_BINARY_DIR}/stub.c")
# Reserved keyword as positional argument
cmake_print_properties(
DEFERRED
TARGETS mylib
PROPERTIES MY_PROP
)