From 6973f8304edb7b63d51f7842033fbd3f8af15e5d Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 5 Dec 2024 15:22:38 -0500 Subject: [PATCH] CMP0050: Remove support for OLD behavior --- Help/policy/CMP0050.rst | 9 +-- Source/cmAddCustomCommandCommand.cxx | 43 ++---------- Source/cmMakefile.cxx | 66 ------------------- Source/cmMakefile.h | 6 -- Source/cmPolicies.h | 2 +- Tests/Complex/CMakeLists.txt | 10 --- Tests/Complex/Executable/CMakeLists.txt | 6 +- Tests/ComplexOneConfig/CMakeLists.txt | 10 --- .../Executable/CMakeLists.txt | 6 +- Tests/RunCMake/CMP0050/CMP0050-NEW.cmake | 13 ---- Tests/RunCMake/CMP0050/CMP0050-OLD-stderr.txt | 10 --- Tests/RunCMake/CMP0050/CMP0050-OLD.cmake | 13 ---- .../RunCMake/CMP0050/CMP0050-WARN-result.txt | 1 - .../RunCMake/CMP0050/CMP0050-WARN-stderr.txt | 9 --- Tests/RunCMake/CMP0050/CMakeLists.txt | 3 - Tests/RunCMake/CMP0050/RunCMakeTest.cmake | 6 -- Tests/RunCMake/CMP0050/empty.cpp | 10 --- Tests/RunCMake/CMP0050/input.h.in | 2 - Tests/RunCMake/CMakeLists.txt | 1 - .../add_custom_command/RunCMakeTest.cmake | 3 +- .../SOURCE-result.txt} | 0 .../SOURCE-stderr.txt} | 2 +- .../SOURCE.cmake} | 1 - .../SourceByproducts-result.txt | 1 - .../SourceByproducts-stderr.txt | 4 -- .../add_custom_command/SourceByproducts.cmake | 1 - .../SourceUsesTerminal-result.txt | 1 - .../SourceUsesTerminal-stderr.txt | 4 -- .../SourceUsesTerminal.cmake | 1 - 29 files changed, 18 insertions(+), 226 deletions(-) delete mode 100644 Tests/RunCMake/CMP0050/CMP0050-NEW.cmake delete mode 100644 Tests/RunCMake/CMP0050/CMP0050-OLD-stderr.txt delete mode 100644 Tests/RunCMake/CMP0050/CMP0050-OLD.cmake delete mode 100644 Tests/RunCMake/CMP0050/CMP0050-WARN-result.txt delete mode 100644 Tests/RunCMake/CMP0050/CMP0050-WARN-stderr.txt delete mode 100644 Tests/RunCMake/CMP0050/CMakeLists.txt delete mode 100644 Tests/RunCMake/CMP0050/RunCMakeTest.cmake delete mode 100644 Tests/RunCMake/CMP0050/empty.cpp delete mode 100644 Tests/RunCMake/CMP0050/input.h.in rename Tests/RunCMake/{CMP0050/CMP0050-NEW-result.txt => add_custom_command/SOURCE-result.txt} (100%) rename Tests/RunCMake/{CMP0050/CMP0050-NEW-stderr.txt => add_custom_command/SOURCE-stderr.txt} (70%) rename Tests/RunCMake/{CMP0050/CMP0050-WARN.cmake => add_custom_command/SOURCE.cmake} (99%) delete mode 100644 Tests/RunCMake/add_custom_command/SourceByproducts-result.txt delete mode 100644 Tests/RunCMake/add_custom_command/SourceByproducts-stderr.txt delete mode 100644 Tests/RunCMake/add_custom_command/SourceByproducts.cmake delete mode 100644 Tests/RunCMake/add_custom_command/SourceUsesTerminal-result.txt delete mode 100644 Tests/RunCMake/add_custom_command/SourceUsesTerminal-stderr.txt delete mode 100644 Tests/RunCMake/add_custom_command/SourceUsesTerminal.cmake diff --git a/Help/policy/CMP0050.rst b/Help/policy/CMP0050.rst index 1b93773c7b..dcd68a61c4 100644 --- a/Help/policy/CMP0050.rst +++ b/Help/policy/CMP0050.rst @@ -1,6 +1,9 @@ CMP0050 ------- +.. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0 +.. include:: REMOVED_PROLOGUE.txt + Disallow add_custom_command SOURCE signatures. CMake 2.8.12 and lower allowed a signature for :command:`add_custom_command` @@ -13,7 +16,5 @@ The ``OLD`` behavior for this policy is to allow the use of policy is to issue an error if such a signature is used. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0 -.. |WARNS_OR_DOES_NOT_WARN| replace:: warns -.. include:: STANDARD_ADVICE.txt - -.. include:: DEPRECATED.txt +.. |WARNED_OR_DID_NOT_WARN| replace:: warned +.. include:: REMOVED_EPILOGUE.txt diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx index 10e7a26ea1..accc7ca1e9 100644 --- a/Source/cmAddCustomCommandCommand.cxx +++ b/Source/cmAddCustomCommandCommand.cxx @@ -5,7 +5,6 @@ #include #include #include -#include #include #include @@ -590,44 +589,10 @@ bool cmAddCustomCommandCommand(std::vector const& args, cc->SetImplicitDepends(implicit_depends); mf.AddCustomCommandToOutput(std::move(cc)); } else { - if (!byproducts.empty()) { - status.SetError( - "BYPRODUCTS may not be specified with SOURCE signatures"); - return false; - } - - if (uses_terminal) { - status.SetError("USES_TERMINAL may not be used with SOURCE signatures"); - return false; - } - - bool issueMessage = true; - std::ostringstream e; - MessageType messageType = MessageType::AUTHOR_WARNING; - switch (mf.GetPolicyStatus(cmPolicies::CMP0050)) { - case cmPolicies::WARN: - e << cmPolicies::GetPolicyWarning(cmPolicies::CMP0050) << "\n"; - break; - case cmPolicies::OLD: - issueMessage = false; - break; - case cmPolicies::NEW: - messageType = MessageType::FATAL_ERROR; - break; - } - - if (issueMessage) { - e << "The SOURCE signatures of add_custom_command are no longer " - "supported."; - mf.IssueMessage(messageType, e.str()); - if (messageType == MessageType::FATAL_ERROR) { - return false; - } - } - - // Use the old-style mode for backward compatibility. - mf.AddCustomCommandOldStyle(target, outputs, depends, source, commandLines, - comment); + mf.IssueMessage( + MessageType::FATAL_ERROR, + "The SOURCE signatures of add_custom_command are no longer supported."); + return false; } return true; diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 480884a20a..dff8a9037b 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1180,72 +1180,6 @@ void cmMakefile::AddCustomCommandToOutput( }); } -void cmMakefile::AddCustomCommandOldStyle( - const std::string& target, const std::vector& outputs, - const std::vector& depends, const std::string& source, - const cmCustomCommandLines& commandLines, const char* comment) -{ - auto cc = cm::make_unique(); - cc->SetDepends(depends); - cc->SetCommandLines(commandLines); - cc->SetComment(comment); - - // Translate the old-style signature to one of the new-style - // signatures. - if (source == target) { - // In the old-style signature if the source and target were the - // same then it added a post-build rule to the target. Preserve - // this behavior. - this->AddCustomCommandToTarget(target, cmCustomCommandType::POST_BUILD, - std::move(cc)); - return; - } - - auto ti = this->Targets.find(target); - cmTarget* t = ti != this->Targets.end() ? &ti->second : nullptr; - - auto addRuleFileToTarget = [=](cmSourceFile* sf) { - // If the rule was added to the source (and not a .rule file), - // then add the source to the target to make sure the rule is - // included. - if (!sf->GetPropertyAsBool("__CMAKE_RULE")) { - if (t) { - t->AddSource(sf->ResolveFullPath()); - } else { - cmSystemTools::Error("Attempt to add a custom rule to a target " - "that does not exist yet for target " + - target); - } - } - }; - - // Each output must get its own copy of this rule. - cmsys::RegularExpression sourceFiles( - "\\.(C|M|c|c\\+\\+|cc|cpp|cxx|mpp|ixx|cppm|ccm|cxxm|c\\+\\+m|cu|m|mm|" - "rc|def|r|odl|idl|hpj|bat|h|h\\+\\+|" - "hm|hpp|hxx|in|txx|inl)$"); - - // Choose whether to use a main dependency. - if (sourceFiles.find(source)) { - // The source looks like a real file. Use it as the main dependency. - for (std::string const& output : outputs) { - auto cc1 = cm::make_unique(*cc); - cc1->SetOutputs(output); - cc1->SetMainDependency(source); - this->AddCustomCommandToOutput(std::move(cc1), addRuleFileToTarget); - } - } else { - cc->AppendDepends({ source }); - - // The source may not be a real file. Do not use a main dependency. - for (std::string const& output : outputs) { - auto cc1 = cm::make_unique(*cc); - cc1->SetOutputs(output); - this->AddCustomCommandToOutput(std::move(cc1), addRuleFileToTarget); - } - } -} - void cmMakefile::AppendCustomCommandToOutput( const std::string& output, const std::vector& depends, const cmImplicitDependsList& implicit_depends, diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index e560a5d391..78a485d9df 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -235,12 +235,6 @@ public: void AddCustomCommandToOutput( std::unique_ptr cc, const CommandSourceCallback& callback = nullptr, bool replace = false); - void AddCustomCommandOldStyle(const std::string& target, - const std::vector& outputs, - const std::vector& depends, - const std::string& source, - const cmCustomCommandLines& commandLines, - const char* comment); void AppendCustomCommandToOutput( const std::string& output, const std::vector& depends, const cmImplicitDependsList& implicit_depends, diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index 53d0683b4e..a7ae22eebb 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -149,7 +149,7 @@ class cmMakefile; SELECT(POLICY, CMP0049, \ "Do not expand variables in target source entries.", 3, 0, 0, NEW) \ SELECT(POLICY, CMP0050, "Disallow add_custom_command SOURCE signatures.", \ - 3, 0, 0, WARN) \ + 3, 0, 0, NEW) \ SELECT(POLICY, CMP0051, "List TARGET_OBJECTS in SOURCES target property.", \ 3, 1, 0, WARN) \ SELECT(POLICY, CMP0052, \ diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt index e19bea5fb9..ce27bde099 100644 --- a/Tests/Complex/CMakeLists.txt +++ b/Tests/Complex/CMakeLists.txt @@ -19,16 +19,6 @@ function(message) endfunction() message("message") -# It is not recommended to set a policy to OLD, but this test -# covers the OLD behavior of some policies. -foreach(p - CMP0050 - ) - if(POLICY ${p}) - cmake_policy(SET ${p} OLD) - endif() -endforeach() - # Test building without per-rule echo lines in Makefiles. set_property(GLOBAL PROPERTY RULE_MESSAGES OFF) diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt index ac27785183..c382dd135d 100644 --- a/Tests/Complex/Executable/CMakeLists.txt +++ b/Tests/Complex/Executable/CMakeLists.txt @@ -110,14 +110,14 @@ set_source_files_properties(complex ) set_target_properties(complex PROPERTIES COMPILE_FLAGS "-DCOMPLEX_TARGET_FLAG") add_custom_command( - TARGET complex - SOURCE ${Complex_SOURCE_DIR}/cmTestGeneratedHeader.h.in + MAIN_DEPENDENCY ${Complex_SOURCE_DIR}/cmTestGeneratedHeader.h.in COMMAND ${CMAKE_COMMAND} ARGS -E copy ${Complex_SOURCE_DIR}/cmTestGeneratedHeader.h.in ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h - OUTPUTS ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h + OUTPUT ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h DEPENDS ${CMAKE_COMMAND} ) +target_sources(complex PRIVATE ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h) # Test creating an executable that is not built by default. add_executable(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx) diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index 53cd42891f..87259807a1 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/CMakeLists.txt @@ -12,16 +12,6 @@ string(APPEND CMAKE_CXX_FLAGS_RELWITHDEBINFO " -DCOMPLEX_NDEBUG") string(APPEND CMAKE_C_FLAGS_MINSIZEREL " -DCOMPLEX_NDEBUG") string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL " -DCOMPLEX_NDEBUG") -# It is not recommended to set a policy to OLD, but this test -# covers the OLD behavior of some policies. -foreach(p - CMP0050 - ) - if(POLICY ${p}) - cmake_policy(SET ${p} OLD) - endif() -endforeach() - # Test building without per-rule echo lines in Makefiles. set_property(GLOBAL PROPERTY RULE_MESSAGES OFF) diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt index 824b6caa46..66c45e519c 100644 --- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt +++ b/Tests/ComplexOneConfig/Executable/CMakeLists.txt @@ -110,14 +110,14 @@ set_source_files_properties(complex ) set_target_properties(complex PROPERTIES COMPILE_FLAGS "-DCOMPLEX_TARGET_FLAG") add_custom_command( - TARGET complex - SOURCE ${Complex_SOURCE_DIR}/cmTestGeneratedHeader.h.in + MAIN_DEPENDENCY ${Complex_SOURCE_DIR}/cmTestGeneratedHeader.h.in COMMAND ${CMAKE_COMMAND} ARGS -E copy ${Complex_SOURCE_DIR}/cmTestGeneratedHeader.h.in ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h - OUTPUTS ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h + OUTPUT ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h DEPENDS ${CMAKE_COMMAND} ) +target_sources(complex PRIVATE ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h) # Test creating an executable that is not built by default. add_executable(notInAllExe EXCLUDE_FROM_ALL notInAllExe.cxx) diff --git a/Tests/RunCMake/CMP0050/CMP0050-NEW.cmake b/Tests/RunCMake/CMP0050/CMP0050-NEW.cmake deleted file mode 100644 index cdc65b897c..0000000000 --- a/Tests/RunCMake/CMP0050/CMP0050-NEW.cmake +++ /dev/null @@ -1,13 +0,0 @@ - -cmake_policy(SET CMP0050 NEW) - -add_library(empty empty.cpp) -add_custom_command( - TARGET empty - SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/input.h.in - COMMAND ${CMAKE_COMMAND} - ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/input.h.in - ${CMAKE_CURRENT_BINARY_DIR}/input.h - OUTPUTS ${CMAKE_CURRENT_BINARY_DIR}/input.h - DEPENDS ${CMAKE_COMMAND} -) diff --git a/Tests/RunCMake/CMP0050/CMP0050-OLD-stderr.txt b/Tests/RunCMake/CMP0050/CMP0050-OLD-stderr.txt deleted file mode 100644 index 3e7fa979c5..0000000000 --- a/Tests/RunCMake/CMP0050/CMP0050-OLD-stderr.txt +++ /dev/null @@ -1,10 +0,0 @@ -^CMake Deprecation Warning at CMP0050-OLD.cmake:2 \(cmake_policy\): - The OLD behavior for policy CMP0050 will be removed from a future version - of CMake. - - The cmake-policies\(7\) manual explains that the OLD behaviors of all - policies are deprecated and that a policy should be set to OLD only under - specific short-term circumstances. Projects should be ported to the NEW - behavior and not rely on setting a policy to OLD. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\)$ diff --git a/Tests/RunCMake/CMP0050/CMP0050-OLD.cmake b/Tests/RunCMake/CMP0050/CMP0050-OLD.cmake deleted file mode 100644 index efb37e55b7..0000000000 --- a/Tests/RunCMake/CMP0050/CMP0050-OLD.cmake +++ /dev/null @@ -1,13 +0,0 @@ - -cmake_policy(SET CMP0050 OLD) - -add_library(empty empty.cpp) -add_custom_command( - TARGET empty - SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/input.h.in - COMMAND ${CMAKE_COMMAND} - ARGS -E copy ${CMAKE_CURRENT_SOURCE_DIR}/input.h.in - ${CMAKE_CURRENT_BINARY_DIR}/input.h - OUTPUTS ${CMAKE_CURRENT_BINARY_DIR}/input.h - DEPENDS ${CMAKE_COMMAND} -) diff --git a/Tests/RunCMake/CMP0050/CMP0050-WARN-result.txt b/Tests/RunCMake/CMP0050/CMP0050-WARN-result.txt deleted file mode 100644 index 573541ac97..0000000000 --- a/Tests/RunCMake/CMP0050/CMP0050-WARN-result.txt +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/Tests/RunCMake/CMP0050/CMP0050-WARN-stderr.txt b/Tests/RunCMake/CMP0050/CMP0050-WARN-stderr.txt deleted file mode 100644 index c88d59523e..0000000000 --- a/Tests/RunCMake/CMP0050/CMP0050-WARN-stderr.txt +++ /dev/null @@ -1,9 +0,0 @@ -CMake Warning \(dev\) at CMP0050-WARN.cmake:3 \(add_custom_command\): - Policy CMP0050 is not set: Disallow add_custom_command SOURCE signatures. - Run "cmake --help-policy CMP0050" for policy details. Use the cmake_policy - command to set the policy and suppress this warning. - - The SOURCE signatures of add_custom_command are no longer supported. -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) -This warning is for project developers. Use -Wno-dev to suppress it. diff --git a/Tests/RunCMake/CMP0050/CMakeLists.txt b/Tests/RunCMake/CMP0050/CMakeLists.txt deleted file mode 100644 index a06591c31f..0000000000 --- a/Tests/RunCMake/CMP0050/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -cmake_minimum_required(VERSION 2.8.12) -project(${RunCMake_TEST} CXX) -include(${RunCMake_TEST}.cmake) diff --git a/Tests/RunCMake/CMP0050/RunCMakeTest.cmake b/Tests/RunCMake/CMP0050/RunCMakeTest.cmake deleted file mode 100644 index 526a9aacbf..0000000000 --- a/Tests/RunCMake/CMP0050/RunCMakeTest.cmake +++ /dev/null @@ -1,6 +0,0 @@ -include(RunCMake) -set(RunCMake_IGNORE_POLICY_VERSION_DEPRECATION ON) - -run_cmake(CMP0050-OLD) -run_cmake(CMP0050-NEW) -run_cmake(CMP0050-WARN) diff --git a/Tests/RunCMake/CMP0050/empty.cpp b/Tests/RunCMake/CMP0050/empty.cpp deleted file mode 100644 index bf7d5c92e8..0000000000 --- a/Tests/RunCMake/CMP0050/empty.cpp +++ /dev/null @@ -1,10 +0,0 @@ - -#include "input.h" - -#ifdef _WIN32 -__declspec(dllexport) -#endif - int empty() -{ - return 0; -} diff --git a/Tests/RunCMake/CMP0050/input.h.in b/Tests/RunCMake/CMP0050/input.h.in deleted file mode 100644 index d8c5d26a8b..0000000000 --- a/Tests/RunCMake/CMP0050/input.h.in +++ /dev/null @@ -1,2 +0,0 @@ - -#define INPUT diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 78117dd74e..2e9890f124 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -113,7 +113,6 @@ endif() add_RunCMake_test(CMP0045) add_RunCMake_test(CMP0046) add_RunCMake_test(CMP0049) -add_RunCMake_test(CMP0050) add_RunCMake_test(CMP0051) add_RunCMake_test(CMP0053) add_RunCMake_test(CMP0054) diff --git a/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake b/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake index 820591c933..82049f2963 100644 --- a/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake +++ b/Tests/RunCMake/add_custom_command/RunCMakeTest.cmake @@ -16,8 +16,7 @@ run_cmake(LiteralQuotes) run_cmake(NoArguments) run_cmake(NoOutputOrTarget) run_cmake(OutputAndTarget) -run_cmake(SourceByproducts) -run_cmake(SourceUsesTerminal) +run_cmake(SOURCE) run_cmake(TargetImported) run_cmake(TargetLiteralQuotes) run_cmake(TargetNotInDir) diff --git a/Tests/RunCMake/CMP0050/CMP0050-NEW-result.txt b/Tests/RunCMake/add_custom_command/SOURCE-result.txt similarity index 100% rename from Tests/RunCMake/CMP0050/CMP0050-NEW-result.txt rename to Tests/RunCMake/add_custom_command/SOURCE-result.txt diff --git a/Tests/RunCMake/CMP0050/CMP0050-NEW-stderr.txt b/Tests/RunCMake/add_custom_command/SOURCE-stderr.txt similarity index 70% rename from Tests/RunCMake/CMP0050/CMP0050-NEW-stderr.txt rename to Tests/RunCMake/add_custom_command/SOURCE-stderr.txt index e913b3fa90..95d3a5d784 100644 --- a/Tests/RunCMake/CMP0050/CMP0050-NEW-stderr.txt +++ b/Tests/RunCMake/add_custom_command/SOURCE-stderr.txt @@ -1,4 +1,4 @@ -CMake Error at CMP0050-NEW.cmake:5 \(add_custom_command\): +CMake Error at SOURCE.cmake:[0-9]+ \(add_custom_command\): The SOURCE signatures of add_custom_command are no longer supported. Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/CMP0050/CMP0050-WARN.cmake b/Tests/RunCMake/add_custom_command/SOURCE.cmake similarity index 99% rename from Tests/RunCMake/CMP0050/CMP0050-WARN.cmake rename to Tests/RunCMake/add_custom_command/SOURCE.cmake index e57230e5b9..1b464fb39f 100644 --- a/Tests/RunCMake/CMP0050/CMP0050-WARN.cmake +++ b/Tests/RunCMake/add_custom_command/SOURCE.cmake @@ -1,4 +1,3 @@ - add_library(empty empty.cpp) add_custom_command( TARGET empty diff --git a/Tests/RunCMake/add_custom_command/SourceByproducts-result.txt b/Tests/RunCMake/add_custom_command/SourceByproducts-result.txt deleted file mode 100644 index d00491fd7e..0000000000 --- a/Tests/RunCMake/add_custom_command/SourceByproducts-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/add_custom_command/SourceByproducts-stderr.txt b/Tests/RunCMake/add_custom_command/SourceByproducts-stderr.txt deleted file mode 100644 index a9cd64c3fd..0000000000 --- a/Tests/RunCMake/add_custom_command/SourceByproducts-stderr.txt +++ /dev/null @@ -1,4 +0,0 @@ -CMake Error at SourceByproducts.cmake:1 \(add_custom_command\): - add_custom_command BYPRODUCTS may not be specified with SOURCE signatures -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/add_custom_command/SourceByproducts.cmake b/Tests/RunCMake/add_custom_command/SourceByproducts.cmake deleted file mode 100644 index 824f41da72..0000000000 --- a/Tests/RunCMake/add_custom_command/SourceByproducts.cmake +++ /dev/null @@ -1 +0,0 @@ -add_custom_command(SOURCE t TARGET t BYPRODUCTS b) diff --git a/Tests/RunCMake/add_custom_command/SourceUsesTerminal-result.txt b/Tests/RunCMake/add_custom_command/SourceUsesTerminal-result.txt deleted file mode 100644 index d00491fd7e..0000000000 --- a/Tests/RunCMake/add_custom_command/SourceUsesTerminal-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/add_custom_command/SourceUsesTerminal-stderr.txt b/Tests/RunCMake/add_custom_command/SourceUsesTerminal-stderr.txt deleted file mode 100644 index 1a76c549f7..0000000000 --- a/Tests/RunCMake/add_custom_command/SourceUsesTerminal-stderr.txt +++ /dev/null @@ -1,4 +0,0 @@ -CMake Error at SourceUsesTerminal.cmake:1 \(add_custom_command\): - add_custom_command USES_TERMINAL may not be used with SOURCE signatures -Call Stack \(most recent call first\): - CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/add_custom_command/SourceUsesTerminal.cmake b/Tests/RunCMake/add_custom_command/SourceUsesTerminal.cmake deleted file mode 100644 index 295fab141c..0000000000 --- a/Tests/RunCMake/add_custom_command/SourceUsesTerminal.cmake +++ /dev/null @@ -1 +0,0 @@ -add_custom_command(SOURCE t TARGET t USES_TERMINAL)