GENERATED prop: Check CMP0118 policy and warn in certain situations

* Adding tests for CMP0118 being unset (aka set to `WARN`).
* Adjusting the (unrelated) RunCMake.CMP0026 test to set CMP0118 to
  `NEW`,
* Adjusting the (unrelated) RunCMake.Ninja test to set CMP0118 to `OLD`.
* Adjusting the (unrelated) RunCMake.FileAPI test to set CMP0118 to
  `OLD`.

Note:
Setting CMP0118 to `NEW` and modifying the `GENERATED` property with
`set_property` or `set_source_files_properties` will currently NOT set
that property because the implementation is still to come.
This commit is contained in:
Deniz Bahadir 2020-09-30 21:11:14 +02:00
parent 0eb30f175e
commit ca4ce458a3
75 changed files with 1813 additions and 21 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -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());
}
}
}
}

View File

@ -1,4 +1,4 @@
cmake_policy(SET CMP0118 NEW)
enable_language(CXX)
add_library(foo OBJECT empty.cpp)

View File

@ -1,4 +1,4 @@
cmake_policy(SET CMP0118 NEW)
enable_language(C)
cmake_policy(SET CMP0026 OLD)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test1.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test10.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test11.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test12.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test13.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test14.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test15.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test2.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test3.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test3b.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test4.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test4b.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test5.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test6.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test7.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test8.cmake)

View File

@ -1,2 +1,2 @@
#cmake_policy(SET CMP0118 OLD)
cmake_policy(SET CMP0118 OLD)
include(CMP0118-Common-Test9.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test1.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test10.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test11.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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`$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test12.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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`$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test13.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test14.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test15.cmake)

View File

@ -0,0 +1 @@
^prop: `1`$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test2.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test3.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test3b.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test4.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test4b.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test5.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test6.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test7.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test8.cmake)

View File

@ -0,0 +1 @@
1

View File

@ -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\.$

View File

@ -0,0 +1 @@
include(CMP0118-Common-Test9.cmake)

View File

@ -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)

View File

@ -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} .)

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.8)
cmake_policy(SET CMP0118 OLD)
project(AssumedSources)
set_source_files_properties(