diff options
75 files changed, 1813 insertions, 21 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx index 45fd43d..d3bcae9 100644 --- a/Source/cmSetPropertyCommand.cxx +++ b/Source/cmSetPropertyCommand.cxx @@ -10,9 +10,12 @@ #include "cmGlobalGenerator.h" #include "cmInstalledFile.h" #include "cmMakefile.h" +#include "cmMessageType.h" +#include "cmPolicies.h" #include "cmProperty.h" #include "cmRange.h" #include "cmSourceFile.h" +#include "cmSourceFileLocation.h" #include "cmState.h" #include "cmStringAlgorithms.h" #include "cmSystemTools.h" @@ -216,8 +219,92 @@ void MakeSourceFilePathsAbsoluteIfNeeded( source_files_absolute_paths.push_back(absolute_file_path); } } + +bool HandleAndValidateSourceFilePropertyGENERATED( + cmSourceFile* sf, std::string const& propertyValue, PropertyOp op) +{ + auto& mf = *sf->GetLocation().GetMakefile(); + auto policyStatus = mf.GetPolicyStatus(cmPolicies::CMP0118); + + const bool policyWARN = policyStatus == cmPolicies::WARN; + const bool policyNEW = policyStatus != cmPolicies::OLD && !policyWARN; + + if (policyWARN) { + if (!cmIsOn(propertyValue) && !cmIsOff(propertyValue)) { + mf.IssueMessage( + MessageType::AUTHOR_WARNING, + cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0118), + "\nAttempt to set property 'GENERATED' with the following " + "non-boolean value (which will be interpreted as \"0\"):\n", + propertyValue, + "\nThat exact value will not be retrievable. A value of " + "\"0\" will be returned instead.\n" + "This will be an error under policy CMP0118.\n")); + } + if (cmIsOff(propertyValue)) { + mf.IssueMessage( + MessageType::AUTHOR_WARNING, + cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0118), + "\nUnsetting property 'GENERATED' will not be allowed under " + "policy CMP0118!\n")); + } + if (op == PropertyOp::Append || op == PropertyOp::AppendAsString) { + mf.IssueMessage( + MessageType::AUTHOR_WARNING, + cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0118), + "\nAppending to property 'GENERATED' will not be allowed " + "under policy CMP0118!\n")); + } + } else if (policyNEW) { + if (!cmIsOn(propertyValue) && !cmIsOff(propertyValue)) { + mf.IssueMessage( + MessageType::AUTHOR_ERROR, + cmStrCat( + "Policy CMP0118 is set to NEW and the following non-boolean value " + "given for property 'GENERATED' is therefore not allowed:\n", + propertyValue, "\nReplace it with a boolean value!\n")); + return true; + } + if (cmIsOff(propertyValue)) { + mf.IssueMessage( + MessageType::AUTHOR_ERROR, + "Unsetting the 'GENERATED' property is not allowed under CMP0118!\n"); + return true; + } + if (op == PropertyOp::Append || op == PropertyOp::AppendAsString) { + mf.IssueMessage(MessageType::AUTHOR_ERROR, + "Policy CMP0118 is set to NEW and appending to the " + "'GENERATED' property is therefore not allowed. Only " + "setting it to \"1\" is allowed!\n"); + return true; + } + } + + // Set property. + if (!policyNEW) { + // Do it the traditional way. + switch (op) { + case PropertyOp::Append: + sf->AppendProperty("GENERATED", propertyValue, false); + break; + case PropertyOp::AppendAsString: + sf->AppendProperty("GENERATED", propertyValue, true); + break; + case PropertyOp::Remove: + sf->SetProperty("GENERATED", nullptr); + break; + case PropertyOp::Set: + sf->SetProperty("GENERATED", propertyValue.c_str()); + break; + } + } else { + // TODO: Mark source-file as generated! + } + return true; } +} // END: namespace SetPropertyCommand + bool cmSetPropertyCommand(std::vector<std::string> const& args, cmExecutionStatus& status) { @@ -367,7 +454,7 @@ bool cmSetPropertyCommand(std::vector<std::string> const& args, return true; } -namespace { +namespace /* anonymous */ { bool HandleGlobalMode(cmExecutionStatus& status, const std::set<std::string>& names, const std::string& propertyName, @@ -525,6 +612,18 @@ bool HandleSource(cmSourceFile* sf, const std::string& propertyName, const std::string& propertyValue, bool appendAsString, bool appendMode, bool remove) { + // Special validation and handling of GENERATED flag? + if (propertyName == "GENERATED") { + SetPropertyCommand::PropertyOp op = (remove) + ? SetPropertyCommand::PropertyOp::Remove + : (appendAsString) + ? SetPropertyCommand::PropertyOp::AppendAsString + : (appendMode) ? SetPropertyCommand::PropertyOp::Append + : SetPropertyCommand::PropertyOp::Set; + return SetPropertyCommand::HandleAndValidateSourceFilePropertyGENERATED( + sf, propertyValue, op); + } + // Set or append the property. if (appendMode) { sf->AppendProperty(propertyName, propertyValue, appendAsString); diff --git a/Source/cmSetPropertyCommand.h b/Source/cmSetPropertyCommand.h index 01bde65..05c4873 100644 --- a/Source/cmSetPropertyCommand.h +++ b/Source/cmSetPropertyCommand.h @@ -9,6 +9,7 @@ class cmMakefile; class cmExecutionStatus; +class cmSourceFile; bool cmSetPropertyCommand(std::vector<std::string> const& args, cmExecutionStatus& status); @@ -39,4 +40,16 @@ void MakeSourceFilePathsAbsoluteIfNeeded( std::vector<std::string>& source_files_absolute_paths, std::vector<std::string>::const_iterator files_it_begin, std::vector<std::string>::const_iterator files_it_end, bool needed); + +enum class PropertyOp +{ + Remove, + Set, + Append, + AppendAsString +}; + +bool HandleAndValidateSourceFilePropertyGENERATED( + cmSourceFile* sf, std::string const& propertyValue, + PropertyOp op = PropertyOp::Set); } diff --git a/Source/cmSetSourceFilesPropertiesCommand.cxx b/Source/cmSetSourceFilesPropertiesCommand.cxx index 8520d7c..742aa96 100644 --- a/Source/cmSetSourceFilesPropertiesCommand.cxx +++ b/Source/cmSetSourceFilesPropertiesCommand.cxx @@ -7,6 +7,7 @@ #include <cm/string_view> #include <cmext/algorithm> +#include <cmext/string_view> #include "cmExecutionStatus.h" #include "cmMakefile.h" @@ -167,7 +168,13 @@ static bool RunCommandForScope( if (cmSourceFile* sf = mf->GetOrCreateSource(sfname)) { // loop through the props and set them for (auto k = propertyPairs.begin(); k != propertyPairs.end(); k += 2) { - sf->SetProperty(*k, (k + 1)->c_str()); + // Special handling for GENERATED property? + if (*k == "GENERATED"_s) { + SetPropertyCommand::HandleAndValidateSourceFilePropertyGENERATED( + sf, *(k + 1)); + } else { + sf->SetProperty(*k, (k + 1)->c_str()); + } } } } diff --git a/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake b/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake index 3d8eb73..ee5ed5b 100644 --- a/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake +++ b/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake @@ -1,4 +1,4 @@ - +cmake_policy(SET CMP0118 NEW) enable_language(CXX) add_library(foo OBJECT empty.cpp) diff --git a/Tests/RunCMake/CMP0026/clear-cached-information.cmake b/Tests/RunCMake/CMP0026/clear-cached-information.cmake index dd2dd72..9916948 100644 --- a/Tests/RunCMake/CMP0026/clear-cached-information.cmake +++ b/Tests/RunCMake/CMP0026/clear-cached-information.cmake @@ -1,4 +1,4 @@ - +cmake_policy(SET CMP0118 NEW) enable_language(C) cmake_policy(SET CMP0026 OLD) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1.cmake index c635c86..c18dd25 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test1.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10.cmake index 903d418..b96973f 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test10.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11.cmake index 14511f8..d6ad7d2 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test11.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12.cmake index a230e03..b87b03a 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test12.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13.cmake index 26c246e..17a135b 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test13.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14.cmake index d131877..0702291 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test14.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15.cmake index 1559745..c330d4e 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test15.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2.cmake index 5840399..3ea8800 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test2.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3.cmake index 12b692c..c8f5a0e 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test3.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b.cmake index d43fd6a..0b046b4 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test3b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4.cmake index cd9edae..2f77397 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test4.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b.cmake index d8fe6f4..ce6726d 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test4b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5.cmake index ee1bac6..2de6d89 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test5.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6.cmake index 07665d8..b571052 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test6.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7.cmake index a85e3ca..551da23 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test7.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8.cmake index c82e18f..2d9e3d3 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test8.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9.cmake index b31188f..53f73d9 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9.cmake @@ -1,2 +1,2 @@ -#cmake_policy(SET CMP0118 OLD) +cmake_policy(SET CMP0118 OLD) include(CMP0118-Common-Test9.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-stderr.txt new file mode 100644 index 0000000..9ae7eb2 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-stderr.txt @@ -0,0 +1,16 @@ +^prop: `` +CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-build/GeneratedMain\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test1\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable +Call Stack \(most recent call first\): + CMP0118-WARN-Test1\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1.cmake new file mode 100644 index 0000000..3c82f8e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test1.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-stderr.txt new file mode 100644 index 0000000..118a6e6 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-stderr.txt @@ -0,0 +1,57 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `` +Generated_source0\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test10\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test10\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test10\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-WARN-Test10\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10.cmake new file mode 100644 index 0000000..c639c40 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test10.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-stderr.txt new file mode 100644 index 0000000..7c02091 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-stderr.txt @@ -0,0 +1,112 @@ +^((CMake Warning \(dev\) at subdir-Common-Test11/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `` +Generated_source0\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[2-6] +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11.cmake new file mode 100644 index 0000000..4c9735d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test11.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-stderr.txt new file mode 100644 index 0000000..33b2c89 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-stderr.txt @@ -0,0 +1,51 @@ +^CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `` +Generated_source0\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12.cmake new file mode 100644 index 0000000..79fa00a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test12.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-stderr.txt new file mode 100644 index 0000000..2c5148e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-stderr.txt @@ -0,0 +1,74 @@ +^CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +((CMake Warning \(dev\) at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test13\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test13\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `` +Generated_source0\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13.cmake new file mode 100644 index 0000000..27f71c7 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test13.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-stderr.txt new file mode 100644 index 0000000..e76e48c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-stderr.txt @@ -0,0 +1,57 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `` +Generated_source0\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test14\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test14\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test14\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-WARN-Test14\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14.cmake new file mode 100644 index 0000000..056f0ad --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test14.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-stderr.txt new file mode 100644 index 0000000..dc3e9d3 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-stderr.txt @@ -0,0 +1,112 @@ +^((CMake Warning \(dev\) at subdir-Common-Test15/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `` +Generated_source0\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[2-6] +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15.cmake new file mode 100644 index 0000000..acc8bf6 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test15.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2-stderr.txt new file mode 100644 index 0000000..403ce5a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2-stderr.txt @@ -0,0 +1 @@ +^prop: `1`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2.cmake new file mode 100644 index 0000000..5a67974 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test2.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-stderr.txt new file mode 100644 index 0000000..ea32cbf --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-stderr.txt @@ -0,0 +1,93 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[13-5] +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3.cmake new file mode 100644 index 0000000..7cdfacb --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test3.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-stderr.txt new file mode 100644 index 0000000..c54a75f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-stderr.txt @@ -0,0 +1,93 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[13-5] +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b.cmake new file mode 100644 index 0000000..6dfc16a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test3b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-stderr.txt new file mode 100644 index 0000000..e882b5c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-stderr.txt @@ -0,0 +1,218 @@ +^CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[1-5] +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4.cmake new file mode 100644 index 0000000..9d432a4 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test4.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-stderr.txt new file mode 100644 index 0000000..b3e27bf --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-stderr.txt @@ -0,0 +1,218 @@ +^CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[1-5] +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b.cmake new file mode 100644 index 0000000..2e2c2bd --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test4b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-stderr.txt new file mode 100644 index 0000000..b6c5c3f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-stderr.txt @@ -0,0 +1,219 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `tRue` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `tRue` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `tRue` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `tRue` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `SomeVar-NOTFOUND` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `SomeVar-NOTFOUND` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `SomeVar-NOTFOUND` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `SomeVar-NOTFOUND` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Attempt to set property 'GENERATED' with the following non-boolean value + \(which will be interpreted as "0"\): + + Junk-value + + That exact value will not be retrievable\. A value of "0" will be returned + instead\. + + This will be an error under policy CMP0118\. + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `Junk-value` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `Junk-value` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `Junk-value` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `Junk-value` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `tRue` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `tRue` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `tRue` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `tRue` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `SomeVar-NOTFOUND` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `SomeVar-NOTFOUND` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `SomeVar-NOTFOUND` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `SomeVar-NOTFOUND` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Attempt to set property 'GENERATED' with the following non-boolean value + \(which will be interpreted as "0"\): + + Junk-value + + That exact value will not be retrievable\. A value of "0" will be returned + instead\. + + This will be an error under policy CMP0118\. + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `Junk-value` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `Junk-value` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `Junk-value` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `Junk-value` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `tRue` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `tRue` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `tRue` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `tRue` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `SomeVar-NOTFOUND` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `SomeVar-NOTFOUND` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `SomeVar-NOTFOUND` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `SomeVar-NOTFOUND` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Attempt to set property 'GENERATED' with the following non-boolean value + \(which will be interpreted as "0"\): + + Junk-value + + That exact value will not be retrievable\. A value of "0" will be returned + instead\. + + This will be an error under policy CMP0118\. + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[235-9] +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5.cmake new file mode 100644 index 0000000..87e965e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test5.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-stderr.txt new file mode 100644 index 0000000..b2d6109 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-stderr.txt @@ -0,0 +1,51 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test6\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test6\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test6\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-WARN-Test6\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6.cmake new file mode 100644 index 0000000..6f1edbc --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test6.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-stderr.txt new file mode 100644 index 0000000..90b332f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-stderr.txt @@ -0,0 +1,106 @@ +^((CMake Warning \(dev\) at subdir-Common-Test7/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[2-6] +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7.cmake new file mode 100644 index 0000000..86af20d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test7.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-stderr.txt new file mode 100644 index 0000000..f67c1b9 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-stderr.txt @@ -0,0 +1,51 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `` +Generated_source1\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 2a # GENERATED = `` +Generated_source1\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test8\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test8\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test8\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-WARN-Test8\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8.cmake new file mode 100644 index 0000000..6a0bb4c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test8.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-stderr.txt new file mode 100644 index 0000000..ccf706a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-stderr.txt @@ -0,0 +1,90 @@ +^((CMake Warning \(dev\) at subdir-Common-Test9/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source1\.cpp: # 1a # GENERATED = `` +Generated_source1\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 2a # GENERATED = `` +Generated_source1\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source1\.cpp: # 3a # GENERATED = `` +Generated_source1\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `` +Generated_source2\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `` +Generated_source3\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 1a # GENERATED = `` +Generated_source4\.cpp: # 1b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 2a # GENERATED = `` +Generated_source4\.cpp: # 2b # GENERATED = `NOTFOUND` +Generated_source4\.cpp: # 3a # GENERATED = `` +Generated_source4\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `` +Generated_source5\.cpp: # 3b # GENERATED = `NOTFOUND` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `` +Generated_source6\.cpp: # 3b # GENERATED = `NOTFOUND` +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9.cmake new file mode 100644 index 0000000..c48c64e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test9.cmake) diff --git a/Tests/RunCMake/CMP0118/RunCMakeTest.cmake b/Tests/RunCMake/CMP0118/RunCMakeTest.cmake index 2321e39..a0177c7 100644 --- a/Tests/RunCMake/CMP0118/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMP0118/RunCMakeTest.cmake @@ -17,3 +17,21 @@ run_cmake(CMP0118-OLD-Test12) run_cmake(CMP0118-OLD-Test13) run_cmake(CMP0118-OLD-Test14) run_cmake(CMP0118-OLD-Test15) + +run_cmake(CMP0118-WARN-Test1) +run_cmake(CMP0118-WARN-Test2) +run_cmake(CMP0118-WARN-Test3) +run_cmake(CMP0118-WARN-Test3b) +run_cmake(CMP0118-WARN-Test4) +run_cmake(CMP0118-WARN-Test4b) +run_cmake(CMP0118-WARN-Test5) +run_cmake(CMP0118-WARN-Test6) +run_cmake(CMP0118-WARN-Test7) +run_cmake(CMP0118-WARN-Test8) +run_cmake(CMP0118-WARN-Test9) +run_cmake(CMP0118-WARN-Test10) +run_cmake(CMP0118-WARN-Test11) +run_cmake(CMP0118-WARN-Test12) +run_cmake(CMP0118-WARN-Test13) +run_cmake(CMP0118-WARN-Test14) +run_cmake(CMP0118-WARN-Test15) diff --git a/Tests/RunCMake/FileAPI/RunCMakeTest.cmake b/Tests/RunCMake/FileAPI/RunCMakeTest.cmake index 4449ff1..2cd1f62 100644 --- a/Tests/RunCMake/FileAPI/RunCMakeTest.cmake +++ b/Tests/RunCMake/FileAPI/RunCMakeTest.cmake @@ -50,7 +50,9 @@ run_cmake(ClientStateful) function(run_object object) set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${object}-build) + list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0118=OLD) run_cmake(${object}) + list(POP_BACK RunCMake_TEST_OPTIONS) set(RunCMake_TEST_NO_CLEAN 1) run_cmake_command(${object}-SharedStateless ${CMAKE_COMMAND} .) run_cmake_command(${object}-ClientStateless ${CMAKE_COMMAND} .) diff --git a/Tests/RunCMake/Ninja/AssumedSources.cmake b/Tests/RunCMake/Ninja/AssumedSources.cmake index 5fb0219..9fd759e 100644 --- a/Tests/RunCMake/Ninja/AssumedSources.cmake +++ b/Tests/RunCMake/Ninja/AssumedSources.cmake @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.8) +cmake_policy(SET CMP0118 OLD) project(AssumedSources) set_source_files_properties( |