From 048ee670f27022737ce08cc9d3f581abc287bf8a Mon Sep 17 00:00:00 2001 From: Tom Osika Date: Fri, 17 Apr 2026 13:23:21 -0400 Subject: [PATCH] cmake_print_properties: Deprecate in favor of cmake_language(PRINT_PROPERTIES) Re-implement it in terms of the replacement command. Issue: #27513 --- Help/release/dev/print_all_properties.rst | 4 ++ Modules/CMakePrintHelpers.cmake | 61 +++++++------------ .../PrintPropertiesArgForwarding-stdout.txt | 16 +---- .../PrintPropertiesArgForwarding.cmake | 46 ++------------ .../PrintPropertiesBackwardCompat-check.cmake | 13 ++++ .../PrintPropertiesBackwardCompat.cmake | 6 ++ .../PrintPropertiesDeprecation-stderr.txt | 5 ++ .../PrintPropertiesDeprecation-stdout.txt | 2 + .../PrintPropertiesDeprecation.cmake | 6 ++ ...iesReservedKeywordPositionalArg-result.txt | 1 + ...iesReservedKeywordPositionalArg-stderr.txt | 4 ++ ...opertiesReservedKeywordPositionalArg.cmake | 11 ++++ ...tiesReservedKeywordPropertyName-result.txt | 1 + ...tiesReservedKeywordPropertyName-stderr.txt | 4 ++ ...ropertiesReservedKeywordPropertyName.cmake | 10 +++ .../PrintHelpers/Properties-stdout.txt | 14 ----- Tests/RunCMake/PrintHelpers/Properties.cmake | 26 -------- .../PropertiesSources-stdout.cmake | 8 --- .../PrintHelpers/PropertiesSources.cmake | 19 ------ .../RunCMake/PrintHelpers/RunCMakeTest.cmake | 7 ++- Tests/RunCMake/PrintHelpers/nothing.c | 6 -- Tests/RunCMake/PrintHelpers/nothing.h | 8 --- Tests/RunCMake/PrintHelpers/rot13.c | 15 ----- Tests/RunCMake/PrintHelpers/rot13.h | 9 --- Tests/RunCMake/PrintHelpers/something.c | 7 --- Tests/RunCMake/PrintHelpers/something.h | 8 --- 26 files changed, 102 insertions(+), 215 deletions(-) create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesBackwardCompat-check.cmake create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesBackwardCompat.cmake create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation-stderr.txt create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation-stdout.txt create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation.cmake create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg-result.txt create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg-stderr.txt create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg.cmake create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName-result.txt create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName-stderr.txt create mode 100644 Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName.cmake delete mode 100644 Tests/RunCMake/PrintHelpers/Properties-stdout.txt delete mode 100644 Tests/RunCMake/PrintHelpers/Properties.cmake delete mode 100644 Tests/RunCMake/PrintHelpers/PropertiesSources-stdout.cmake delete mode 100644 Tests/RunCMake/PrintHelpers/PropertiesSources.cmake delete mode 100644 Tests/RunCMake/PrintHelpers/nothing.c delete mode 100644 Tests/RunCMake/PrintHelpers/nothing.h delete mode 100644 Tests/RunCMake/PrintHelpers/rot13.c delete mode 100644 Tests/RunCMake/PrintHelpers/rot13.h delete mode 100644 Tests/RunCMake/PrintHelpers/something.c delete mode 100644 Tests/RunCMake/PrintHelpers/something.h diff --git a/Help/release/dev/print_all_properties.rst b/Help/release/dev/print_all_properties.rst index 329164f138..d9ffc8177e 100644 --- a/Help/release/dev/print_all_properties.rst +++ b/Help/release/dev/print_all_properties.rst @@ -4,3 +4,7 @@ print_all_properties * The :command:`cmake_language(PRINT_PROPERTIES)` command was added to print CMake entities' properties in human-readable form for debugging. + +* The :module:`CMakePrintHelpers` module's :command:`cmake_print_properties` + command is now deprecated in favor of + :command:`cmake_language(PRINT_PROPERTIES)`. diff --git a/Modules/CMakePrintHelpers.cmake b/Modules/CMakePrintHelpers.cmake index 3f746a5706..eb453bb0d8 100644 --- a/Modules/CMakePrintHelpers.cmake +++ b/Modules/CMakePrintHelpers.cmake @@ -21,6 +21,10 @@ This module provides the following commands: .. command:: cmake_print_properties + .. deprecated:: 4.5 + + Use :command:`cmake_language(PRINT_PROPERTIES)` instead. + Prints the values of properties for the specified targets, source files, directories, tests, or cache entries: @@ -111,6 +115,23 @@ endfunction() function(cmake_print_properties) + message(DEPRECATION + "cmake_print_properties() is deprecated. Use cmake_language(PRINT_PROPERTIES) instead.") + + set(_cppmode_reserved_keywords + ALL NAMED PROPERTY_NAME_REGEX PROPERTY_VALUE_REGEX + DEFERRED FOLLOW_DEPENDENCIES __CMAKE_PRINT_PROPERTIES) + foreach(_arg IN LISTS ARGV) + if(_arg IN_LIST _cppmode_reserved_keywords) + message(FATAL_ERROR + "cmake_print_properties() got \"${_arg}\", which is a reserved " + "keyword in cmake_language(PRINT_PROPERTIES). If you wish to use " + "it as a keyword to the command, use cmake_language(PRINT_PROPERTIES) " + "directly.") + return() + endif() + endforeach() + set(options ) set(oneValueArgs ) set(cpp_multiValueArgs PROPERTIES ) @@ -146,39 +167,30 @@ function(cmake_print_properties) set(mode) set(items) - set(keyword) if(CPPMODE_TARGETS) set(items ${CPPMODE_TARGETS}) set(mode ${mode} TARGETS) - set(keyword TARGET) endif() if(CPPMODE_SOURCES) set(items ${CPPMODE_SOURCES}) set(mode ${mode} SOURCES) - set(keyword SOURCE) endif() if(CPPMODE_TESTS) set(items ${CPPMODE_TESTS}) set(mode ${mode} TESTS) - set(keyword TEST) endif() if(CPPMODE_DIRECTORIES) set(items ${CPPMODE_DIRECTORIES}) set(mode ${mode} DIRECTORIES) - set(keyword DIRECTORY) endif() if(CPPMODE_CACHE_ENTRIES) set(items ${CPPMODE_CACHE_ENTRIES}) set(mode ${mode} CACHE_ENTRIES) - # This is a workaround for the fact that passing `CACHE` as an argument to - # set() causes a cache variable to be set. - set(keyword "") - string(APPEND keyword CACHE) endif() if(NOT mode) @@ -193,33 +205,6 @@ function(cmake_print_properties) return() endif() - set(msg "\n") - foreach(item ${items}) - - set(itemExists TRUE) - if(keyword STREQUAL "TARGET") - if(NOT TARGET ${item}) - set(itemExists FALSE) - string(APPEND msg "\n No such TARGET \"${item}\" !\n\n") - endif() - endif() - - if (itemExists) - string(APPEND msg " Properties for ${keyword} ${item}:\n") - foreach(prop ${CPP_PROPERTIES}) - - get_property(propertySet ${keyword} ${item} PROPERTY "${prop}" SET) - - if(propertySet) - get_property(property ${keyword} ${item} PROPERTY "${prop}") - string(APPEND msg " ${item}.${prop} = \"${property}\"\n") - else() - string(APPEND msg " ${item}.${prop} = \n") - endif() - endforeach() - endif() - - endforeach() - message(STATUS "${msg}") - + cmake_language(PRINT_PROPERTIES ${mode} ${items} NAMED ${CPP_PROPERTIES} + __CMAKE_PRINT_PROPERTIES) endfunction() diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesArgForwarding-stdout.txt b/Tests/RunCMake/PrintHelpers/PrintPropertiesArgForwarding-stdout.txt index 03903e95dc..8e168c0918 100644 --- a/Tests/RunCMake/PrintHelpers/PrintPropertiesArgForwarding-stdout.txt +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesArgForwarding-stdout.txt @@ -4,17 +4,5 @@ +mylib\.NAME = "mylib" --.* - +Printing all properties for TARGET mylib matching name '\^MY_PROP_' and value '\^alpha\$': - +mylib\.MY_PROP_X = "alpha" - --- Configuring done .* ---.* - +Printing all properties for TARGET mylib \(and all reachable\) matching name '\^MY_PROP_' and value '\^alpha\$': - +mylib\.MY_PROP_X = "alpha" - +mydep\.MY_PROP_X = "alpha" - ---.* - +Properties for TARGET mylib: - +mylib\.TYPE = "STATIC_LIBRARY" - --- Generating done .* + +Properties for SOURCE [^"]+/stub\.c: + +[^"]+/stub\.c\.LANGUAGE = "C" diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesArgForwarding.cmake b/Tests/RunCMake/PrintHelpers/PrintPropertiesArgForwarding.cmake index 2a0b36b0ad..39ee4a4a1b 100644 --- a/Tests/RunCMake/PrintHelpers/PrintPropertiesArgForwarding.cmake +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesArgForwarding.cmake @@ -1,49 +1,13 @@ include(CMakePrintHelpers) -enable_language(C) file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/stub.c" "void stub(void) {}\n") - -add_library(mydep STATIC "${CMAKE_CURRENT_BINARY_DIR}/stub.c") -set_target_properties(mydep PROPERTIES - MY_PROP_X "alpha" - MY_PROP_Y "beta" - OTHER_PROP "alpha" -) - add_library(mylib STATIC "${CMAKE_CURRENT_BINARY_DIR}/stub.c") -target_link_libraries(mylib PRIVATE mydep) -set_target_properties(mylib PROPERTIES - MY_PROP_X "alpha" - MY_PROP_Y "beta" - OTHER_PROP "alpha" -) -# (1) configure-time, specific properties — exercises forwarding of TARGETS -# + PROPERTIES . +# TARGETS scope: forwards as TARGETS mylib NAMED TYPE NAME. cmake_print_properties(TARGETS mylib PROPERTIES TYPE NAME) -# (2) configure-time, ALL + both regex keywords — exercises forwarding of -# PROPERTY_NAME_REGEX and PROPERTY_VALUE_REGEX together. +# SOURCES scope: forwards as SOURCES stub.c NAMED LANGUAGE. Confirms +# scope-keyword translation covers more than just TARGETS. cmake_print_properties( - TARGETS mylib - PROPERTIES ALL - PROPERTY_NAME_REGEX "^MY_PROP_" - PROPERTY_VALUE_REGEX "^alpha$" -) - -# (3) DEFERRED + FOLLOW_DEPENDENCIES + ALL + both regexes — exercises -# forwarding of every new keyword at once, and verifies the walker -# actually reaches the PRIVATE dep at generate time (mydep must appear -# in the output, not just mylib). -cmake_print_properties( - TARGETS mylib - DEFERRED - FOLLOW_DEPENDENCIES - PROPERTIES ALL - PROPERTY_NAME_REGEX "^MY_PROP_" - PROPERTY_VALUE_REGEX "^alpha$" -) - -# (4) DEFERRED alone + specific name — exercises DEFERRED forwarding by -# itself (no dependency walk; mydep must NOT appear). -cmake_print_properties(TARGETS mylib DEFERRED PROPERTIES TYPE) + SOURCES "${CMAKE_CURRENT_BINARY_DIR}/stub.c" + PROPERTIES LANGUAGE) diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesBackwardCompat-check.cmake b/Tests/RunCMake/PrintHelpers/PrintPropertiesBackwardCompat-check.cmake new file mode 100644 index 0000000000..1804f79a03 --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesBackwardCompat-check.cmake @@ -0,0 +1,13 @@ +# cmake_print_properties() must reproduce its historical output byte-for-byte. + +set(expected "-- \n Properties for TARGET foo:") +string(APPEND expected "\n foo.MY_PROP = \"val\"") +string(APPEND expected "\n foo.NOT_SET = ") + +string(FIND "${actual_stdout}" "${expected}" idx) +if(idx EQUAL -1) + set(RunCMake_TEST_FAILED + "cmake_print_properties() output is not byte-for-byte backward compatible.\n" + "Expected to find:\n[${expected}]\n" + "in actual stdout:\n[${actual_stdout}]") +endif() diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesBackwardCompat.cmake b/Tests/RunCMake/PrintHelpers/PrintPropertiesBackwardCompat.cmake new file mode 100644 index 0000000000..c7c0c9d9de --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesBackwardCompat.cmake @@ -0,0 +1,6 @@ +include(CMakePrintHelpers) + +add_library(foo INTERFACE) +set_property(TARGET foo PROPERTY MY_PROP "val") + +cmake_print_properties(TARGETS foo PROPERTIES MY_PROP NOT_SET) diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation-stderr.txt b/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation-stderr.txt new file mode 100644 index 0000000000..d545762cec --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation-stderr.txt @@ -0,0 +1,5 @@ +CMake Warning \(deprecated\) at .*CMakePrintHelpers\.cmake:[0-9]+ \(message\): + cmake_print_properties\(\) is deprecated\. Use + cmake_language\(PRINT_PROPERTIES\) instead\. +Call Stack \(most recent call first\): + PrintPropertiesDeprecation\.cmake:[0-9]+ \(cmake_print_properties\) diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation-stdout.txt b/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation-stdout.txt new file mode 100644 index 0000000000..cdf56e9e45 --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation-stdout.txt @@ -0,0 +1,2 @@ +.*Properties for TARGET mylib:.* +.*mylib\.TYPE = "STATIC_LIBRARY".* diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation.cmake b/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation.cmake new file mode 100644 index 0000000000..a6667a9670 --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesDeprecation.cmake @@ -0,0 +1,6 @@ +include(CMakePrintHelpers) + +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/stub.c" "void stub(void) {}\n") +add_library(mylib STATIC "${CMAKE_CURRENT_BINARY_DIR}/stub.c") + +cmake_print_properties(TARGETS mylib PROPERTIES TYPE) diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg-result.txt b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg-result.txt new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg-stderr.txt b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg-stderr.txt new file mode 100644 index 0000000000..56f0d6120d --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg-stderr.txt @@ -0,0 +1,4 @@ +CMake Error at .*CMakePrintHelpers\.cmake:[0-9]+ \(message\): + cmake_print_properties\(\) got "DEFERRED", which is a reserved keyword in + cmake_language\(PRINT_PROPERTIES\)\. If you wish to use it as a keyword to + the command, use cmake_language\(PRINT_PROPERTIES\) directly\. diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg.cmake b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg.cmake new file mode 100644 index 0000000000..a2ccaf9f6b --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPositionalArg.cmake @@ -0,0 +1,11 @@ +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 +) diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName-result.txt b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName-result.txt new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName-stderr.txt b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName-stderr.txt new file mode 100644 index 0000000000..519a8e0c42 --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName-stderr.txt @@ -0,0 +1,4 @@ +CMake Error at .*CMakePrintHelpers\.cmake:[0-9]+ \(message\): + cmake_print_properties\(\) got "ALL", which is a reserved keyword in + cmake_language\(PRINT_PROPERTIES\)\. If you wish to use it as a keyword to + the command, use cmake_language\(PRINT_PROPERTIES\) directly\. diff --git a/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName.cmake b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName.cmake new file mode 100644 index 0000000000..49733b61c4 --- /dev/null +++ b/Tests/RunCMake/PrintHelpers/PrintPropertiesReservedKeywordPropertyName.cmake @@ -0,0 +1,10 @@ +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 a property name. +cmake_print_properties( + TARGETS mylib + PROPERTIES ALL +) diff --git a/Tests/RunCMake/PrintHelpers/Properties-stdout.txt b/Tests/RunCMake/PrintHelpers/Properties-stdout.txt deleted file mode 100644 index f587dc0fd5..0000000000 --- a/Tests/RunCMake/PrintHelpers/Properties-stdout.txt +++ /dev/null @@ -1,14 +0,0 @@ -.*Properties for TARGET nothing:.* -.*nothing\.LINKER_LANGUAGE = .* -.*nothing\.TYPE = \"STATIC_LIBRARY\".* -.*Properties for TARGET something:.* -.*something\.LINKER_LANGUAGE = .* -.*something\.TYPE = \"EXECUTABLE\".* -+ -.* -.*Properties for SOURCE nothing\.c:.* -.*nothing\.c\.COMPILE_DEFINITIONS = .* -.*nothing\.c\.LANGUAGE = \"C\".* -.*Properties for SOURCE something\.c:.* -.*something\.c\.COMPILE_DEFINITIONS = \"SOMETHING=1\".* -.*something\.c\.LANGUAGE = \"C\".* diff --git a/Tests/RunCMake/PrintHelpers/Properties.cmake b/Tests/RunCMake/PrintHelpers/Properties.cmake deleted file mode 100644 index 3e8ecd1039..0000000000 --- a/Tests/RunCMake/PrintHelpers/Properties.cmake +++ /dev/null @@ -1,26 +0,0 @@ -enable_language(C) - -set_property(SOURCE nothing.c PROPERTY LANGUAGE C) -set_property(SOURCE something.c PROPERTY - COMPILE_DEFINITIONS SOMETHING=1) - -add_library(nothing STATIC nothing.c nothing.h) - -add_executable(something something.c something.h) -target_link_libraries(something PUBLIC nothing) - -include(CMakePrintHelpers) - -cmake_print_properties( - TARGETS nothing something - PROPERTIES - LINKER_LANGUAGE - TYPE -) - -cmake_print_properties( - SOURCES nothing.c something.c - PROPERTIES - COMPILE_DEFINITIONS - LANGUAGE -) diff --git a/Tests/RunCMake/PrintHelpers/PropertiesSources-stdout.cmake b/Tests/RunCMake/PrintHelpers/PropertiesSources-stdout.cmake deleted file mode 100644 index 93b3df07c6..0000000000 --- a/Tests/RunCMake/PrintHelpers/PropertiesSources-stdout.cmake +++ /dev/null @@ -1,8 +0,0 @@ -.*Properties for TARGET rot13:.* -.*rot13.SOURCES = \"rot13.c;rot13.h\".* -.*rot13.POSITION_INDEPENDENT_CODE = \"True\".* -+ -.*--.* -.*Properties for SOURCE rot13.c:.* -.*rot13.c.LOCATION = \"[^\"]*/PrintHelpers/rot13.c\".* -.*rot13.c.LANGUAGE = \"C\".* diff --git a/Tests/RunCMake/PrintHelpers/PropertiesSources.cmake b/Tests/RunCMake/PrintHelpers/PropertiesSources.cmake deleted file mode 100644 index f102b9416b..0000000000 --- a/Tests/RunCMake/PrintHelpers/PropertiesSources.cmake +++ /dev/null @@ -1,19 +0,0 @@ -set_property(SOURCE rot13.c PROPERTY LANGUAGE C) - -add_library(rot13 SHARED rot13.c rot13.h) - -include(CMakePrintHelpers) - -cmake_print_properties( - TARGETS rot13 - PROPERTIES - SOURCES - POSITION_INDEPENDENT_CODE -) - -cmake_print_properties( - SOURCES rot13.c - PROPERTIES - LOCATION - LANGUAGE -) diff --git a/Tests/RunCMake/PrintHelpers/RunCMakeTest.cmake b/Tests/RunCMake/PrintHelpers/RunCMakeTest.cmake index c0696f07dc..5c7bc3e730 100644 --- a/Tests/RunCMake/PrintHelpers/RunCMakeTest.cmake +++ b/Tests/RunCMake/PrintHelpers/RunCMakeTest.cmake @@ -2,9 +2,12 @@ include(RunCMake) block() set(RunCMake_TEST_OPTIONS -Wno-deprecated) + run_cmake(PrintPropertiesArgForwarding) + run_cmake(PrintPropertiesBackwardCompat) + run_cmake(PrintPropertiesReservedKeywordPositionalArg) + run_cmake(PrintPropertiesReservedKeywordPropertyName) run_cmake(VariablesArgForwarding) run_cmake(VariablesReservedKeyword) endblock() +run_cmake(PrintPropertiesDeprecation) run_cmake(VariablesDeprecation) -run_cmake(Properties) -run_cmake(PropertiesSources) diff --git a/Tests/RunCMake/PrintHelpers/nothing.c b/Tests/RunCMake/PrintHelpers/nothing.c deleted file mode 100644 index 1d11f3365a..0000000000 --- a/Tests/RunCMake/PrintHelpers/nothing.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "nothing.h" - -void nothing(void) -{ - (void*)0; -} diff --git a/Tests/RunCMake/PrintHelpers/nothing.h b/Tests/RunCMake/PrintHelpers/nothing.h deleted file mode 100644 index ae86667598..0000000000 --- a/Tests/RunCMake/PrintHelpers/nothing.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef NOTHING_H -#define NOTHING_H - -#include - -void nothing(); - -#endif diff --git a/Tests/RunCMake/PrintHelpers/rot13.c b/Tests/RunCMake/PrintHelpers/rot13.c deleted file mode 100644 index 053bebdbe7..0000000000 --- a/Tests/RunCMake/PrintHelpers/rot13.c +++ /dev/null @@ -1,15 +0,0 @@ -#include "rot13.h" - -void rot13(char* in) -{ - char* end = in + strlen(in); - for (char* c = in; c < end; c++) { - if (*c >= 'a' && *c <= 'z') { - *c += (*c < 'n') ? 13 : -13; - continue; - } - if (*c >= 'A' && *c <= 'Z') { - *c += (*c < 'N') ? 13 : -13; - } - } -} diff --git a/Tests/RunCMake/PrintHelpers/rot13.h b/Tests/RunCMake/PrintHelpers/rot13.h deleted file mode 100644 index 9afea5f49e..0000000000 --- a/Tests/RunCMake/PrintHelpers/rot13.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef ROT13_H -#define ROT13_H - -#include -#include - -void rot13(char* in); - -#endif diff --git a/Tests/RunCMake/PrintHelpers/something.c b/Tests/RunCMake/PrintHelpers/something.c deleted file mode 100644 index 90482c9f25..0000000000 --- a/Tests/RunCMake/PrintHelpers/something.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "something.h" - -int main(void) -{ - nothing(); - return 0; -} diff --git a/Tests/RunCMake/PrintHelpers/something.h b/Tests/RunCMake/PrintHelpers/something.h deleted file mode 100644 index 667ee99c2f..0000000000 --- a/Tests/RunCMake/PrintHelpers/something.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef SOMETHING_H -#define SOMETHING_H - -#include - -#include "nothing.h" - -#endif