mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
CMP0053: Remove support for OLD behavior
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
CMP0053
|
||||
-------
|
||||
|
||||
.. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
|
||||
.. include:: REMOVED_PROLOGUE.txt
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
Simplify variable reference and escape sequence evaluation.
|
||||
@@ -45,7 +48,5 @@ variable references and escape sequences. The ``NEW`` behavior is to
|
||||
use the simpler variable expansion and escape sequence evaluation rules.
|
||||
|
||||
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.1
|
||||
.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
|
||||
.. include:: STANDARD_ADVICE.txt
|
||||
|
||||
.. include:: DEPRECATED.txt
|
||||
.. |WARNED_OR_DID_NOT_WARN| replace:: warned
|
||||
.. include:: REMOVED_EPILOGUE.txt
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
|
||||
# Function to parse implicit linker options.
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
|
||||
# Function parse implicit linker options.
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
# CMAKE_<lang>_COMPILER_LINKER_VERSION
|
||||
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
|
||||
function(cmake_determine_linker_id lang linker)
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include "cmsys/FStream.hxx"
|
||||
#include "cmsys/RegularExpression.hxx"
|
||||
|
||||
#include "cmCommandArgumentParserHelper.h"
|
||||
#include "cmCustomCommand.h"
|
||||
#include "cmCustomCommandLines.h"
|
||||
#include "cmCustomCommandTypes.h"
|
||||
@@ -108,8 +107,6 @@ cmMakefile::cmMakefile(cmGlobalGenerator* globalGenerator,
|
||||
|
||||
this->CheckSystemVars = this->GetCMakeInstance()->GetCheckSystemVars();
|
||||
|
||||
this->SuppressSideEffects = false;
|
||||
|
||||
// Setup the default include complaint regular expression (match nothing).
|
||||
this->ComplainFileRegularExpression = "^$";
|
||||
|
||||
@@ -117,7 +114,6 @@ cmMakefile::cmMakefile(cmGlobalGenerator* globalGenerator,
|
||||
|
||||
this->cmDefineRegex.compile("#([ \t]*)cmakedefine[ \t]+([A-Za-z_0-9]*)");
|
||||
this->cmDefine01Regex.compile("#([ \t]*)cmakedefine01[ \t]+([A-Za-z_0-9]*)");
|
||||
this->cmAtVarRegex.compile("(@[A-Za-z_0-9/.+-]+@)");
|
||||
this->cmNamedCurly.compile("^[A-Za-z0-9/_.+-]+{");
|
||||
|
||||
this->StateSnapshot =
|
||||
@@ -2354,7 +2350,7 @@ cmValue cmMakefile::GetDefinition(const std::string& name) const
|
||||
}
|
||||
#ifndef CMAKE_BOOTSTRAP
|
||||
cmVariableWatch* vv = this->GetVariableWatch();
|
||||
if (vv && !this->SuppressSideEffects) {
|
||||
if (vv) {
|
||||
bool const watch_function_executed =
|
||||
vv->VariableAccessed(name,
|
||||
def ? cmVariableWatch::VARIABLE_READ_ACCESS
|
||||
@@ -2398,11 +2394,6 @@ const std::string& cmMakefile::ExpandVariablesInString(
|
||||
std::string& source, bool escapeQuotes, bool noEscapes, bool atOnly,
|
||||
const char* filename, long line, bool removeEmpty, bool replaceAt) const
|
||||
{
|
||||
bool compareResults = false;
|
||||
MessageType mtype = MessageType::LOG;
|
||||
std::string errorstr;
|
||||
std::string original;
|
||||
|
||||
// Sanity check the @ONLY mode.
|
||||
if (atOnly && (!noEscapes || !removeEmpty)) {
|
||||
// This case should never be called. At-only is for
|
||||
@@ -2413,163 +2404,20 @@ const std::string& cmMakefile::ExpandVariablesInString(
|
||||
return source;
|
||||
}
|
||||
|
||||
// Variables used in the WARN case.
|
||||
std::string newResult;
|
||||
std::string newErrorstr;
|
||||
MessageType newError = MessageType::LOG;
|
||||
|
||||
switch (this->GetPolicyStatus(cmPolicies::CMP0053)) {
|
||||
case cmPolicies::WARN: {
|
||||
// Save the original string for the warning.
|
||||
original = source;
|
||||
newResult = source;
|
||||
compareResults = true;
|
||||
// Suppress variable watches to avoid calling hooks twice. Suppress new
|
||||
// dereferences since the OLD behavior is still what is actually used.
|
||||
this->SuppressSideEffects = true;
|
||||
newError = this->ExpandVariablesInStringNew(
|
||||
newErrorstr, newResult, escapeQuotes, noEscapes, atOnly, filename,
|
||||
line, replaceAt);
|
||||
this->SuppressSideEffects = false;
|
||||
CM_FALLTHROUGH;
|
||||
}
|
||||
case cmPolicies::OLD:
|
||||
mtype = this->ExpandVariablesInStringOld(errorstr, source, escapeQuotes,
|
||||
noEscapes, atOnly, filename,
|
||||
line, removeEmpty, true);
|
||||
break;
|
||||
// Messaging here would be *very* verbose.
|
||||
case cmPolicies::NEW:
|
||||
mtype = this->ExpandVariablesInStringNew(errorstr, source, escapeQuotes,
|
||||
noEscapes, atOnly, filename,
|
||||
line, replaceAt);
|
||||
break;
|
||||
}
|
||||
|
||||
// If it's an error in either case, just report the error...
|
||||
std::string errorstr;
|
||||
MessageType mtype = this->ExpandVariablesInStringImpl(
|
||||
errorstr, source, escapeQuotes, noEscapes, atOnly, filename, line,
|
||||
replaceAt);
|
||||
if (mtype != MessageType::LOG) {
|
||||
if (mtype == MessageType::FATAL_ERROR) {
|
||||
cmSystemTools::SetFatalErrorOccurred();
|
||||
}
|
||||
this->IssueMessage(mtype, errorstr);
|
||||
}
|
||||
// ...otherwise, see if there's a difference that needs to be warned about.
|
||||
else if (compareResults && (newResult != source || newError != mtype)) {
|
||||
auto msg =
|
||||
cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0053), '\n');
|
||||
|
||||
std::string msg_input = original;
|
||||
cmSystemTools::ReplaceString(msg_input, "\n", "\n ");
|
||||
|
||||
std::string msg_old = source;
|
||||
cmSystemTools::ReplaceString(msg_old, "\n", "\n ");
|
||||
|
||||
msg += cmStrCat("For input:\n '", msg_input, "'\n",
|
||||
"the old evaluation rules produce:\n '", msg_old, "'\n");
|
||||
|
||||
if (newError == mtype) {
|
||||
std::string msg_new = newResult;
|
||||
cmSystemTools::ReplaceString(msg_new, "\n", "\n ");
|
||||
msg +=
|
||||
cmStrCat("but the new evaluation rules produce:\n '", msg_new, "'\n");
|
||||
} else {
|
||||
std::string msg_err = newErrorstr;
|
||||
cmSystemTools::ReplaceString(msg_err, "\n", "\n ");
|
||||
msg += cmStrCat("but the new evaluation rules produce an error:\n ",
|
||||
msg_err, '\n');
|
||||
}
|
||||
|
||||
msg +=
|
||||
"Using the old result for compatibility since the policy is not set.";
|
||||
|
||||
this->IssueMessage(MessageType::AUTHOR_WARNING, msg);
|
||||
}
|
||||
|
||||
return source;
|
||||
}
|
||||
|
||||
MessageType cmMakefile::ExpandVariablesInStringOld(
|
||||
std::string& errorstr, std::string& source, bool escapeQuotes,
|
||||
bool noEscapes, bool atOnly, const char* filename, long line,
|
||||
bool removeEmpty, bool replaceAt) const
|
||||
{
|
||||
// Fast path strings without any special characters.
|
||||
if (source.find_first_of("$@\\") == std::string::npos) {
|
||||
return MessageType::LOG;
|
||||
}
|
||||
|
||||
// Special-case the @ONLY mode.
|
||||
if (atOnly) {
|
||||
// Store an original copy of the input.
|
||||
std::string input = source;
|
||||
|
||||
// Start with empty output.
|
||||
source.clear();
|
||||
|
||||
// Look for one @VAR@ at a time.
|
||||
const char* in = input.c_str();
|
||||
while (this->cmAtVarRegex.find(in)) {
|
||||
// Get the range of the string to replace.
|
||||
const char* first = in + this->cmAtVarRegex.start();
|
||||
const char* last = in + this->cmAtVarRegex.end();
|
||||
|
||||
// Store the unchanged part of the string now.
|
||||
source.append(in, first - in);
|
||||
|
||||
// Lookup the definition of VAR.
|
||||
std::string var(first + 1, last - first - 2);
|
||||
if (cmValue val = this->GetDefinition(var)) {
|
||||
// Store the value in the output escaping as requested.
|
||||
if (escapeQuotes) {
|
||||
source.append(cmEscapeQuotes(*val));
|
||||
} else {
|
||||
source.append(*val);
|
||||
}
|
||||
}
|
||||
|
||||
// Continue looking for @VAR@ further along the string.
|
||||
in = last;
|
||||
}
|
||||
|
||||
// Append the rest of the unchanged part of the string.
|
||||
source.append(in);
|
||||
|
||||
return MessageType::LOG;
|
||||
}
|
||||
|
||||
// This method replaces ${VAR} and @VAR@ where VAR is looked up
|
||||
// with GetDefinition(), if not found in the map, nothing is expanded.
|
||||
// It also supports the $ENV{VAR} syntax where VAR is looked up in
|
||||
// the current environment variables.
|
||||
|
||||
cmCommandArgumentParserHelper parser;
|
||||
parser.SetMakefile(this);
|
||||
parser.SetLineFile(line, filename);
|
||||
parser.SetEscapeQuotes(escapeQuotes);
|
||||
parser.SetNoEscapeMode(noEscapes);
|
||||
parser.SetReplaceAtSyntax(replaceAt);
|
||||
parser.SetRemoveEmpty(removeEmpty);
|
||||
int res = parser.ParseString(source, 0);
|
||||
const char* emsg = parser.GetError();
|
||||
MessageType mtype = MessageType::LOG;
|
||||
if (res && !emsg[0]) {
|
||||
source = parser.GetResult();
|
||||
} else {
|
||||
// Construct the main error message.
|
||||
std::string error = "Syntax error in cmake code ";
|
||||
if (filename && line > 0) {
|
||||
// This filename and line number may be more specific than the
|
||||
// command context because one command invocation can have
|
||||
// arguments on multiple lines.
|
||||
error += cmStrCat("at\n ", filename, ':', line, '\n');
|
||||
}
|
||||
error += cmStrCat("when parsing string\n ", source, '\n', emsg);
|
||||
mtype = MessageType::FATAL_ERROR;
|
||||
errorstr = std::move(error);
|
||||
}
|
||||
return mtype;
|
||||
}
|
||||
|
||||
enum t_domain
|
||||
{
|
||||
NORMAL,
|
||||
@@ -2680,7 +2528,7 @@ cm::optional<std::string> cmMakefile::DeferGetCall(std::string const& id) const
|
||||
return call;
|
||||
}
|
||||
|
||||
MessageType cmMakefile::ExpandVariablesInStringNew(
|
||||
MessageType cmMakefile::ExpandVariablesInStringImpl(
|
||||
std::string& errorstr, std::string& source, bool escapeQuotes,
|
||||
bool noEscapes, bool atOnly, const char* filename, long line,
|
||||
bool replaceAt) const
|
||||
@@ -2743,7 +2591,7 @@ MessageType cmMakefile::ExpandVariablesInStringNew(
|
||||
} else {
|
||||
varresult = *value;
|
||||
}
|
||||
} else if (!this->SuppressSideEffects) {
|
||||
} else {
|
||||
this->MaybeWarnUninitialized(lookup, filename);
|
||||
}
|
||||
result.replace(var.loc, result.size() - var.loc, varresult);
|
||||
@@ -2859,7 +2707,7 @@ MessageType cmMakefile::ExpandVariablesInStringNew(
|
||||
cmValue def = this->GetDefinition(variable);
|
||||
if (def) {
|
||||
varresult = *def;
|
||||
} else if (!this->SuppressSideEffects) {
|
||||
} else {
|
||||
this->MaybeWarnUninitialized(variable, filename);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1197,7 +1197,6 @@ private:
|
||||
|
||||
mutable cmsys::RegularExpression cmDefineRegex;
|
||||
mutable cmsys::RegularExpression cmDefine01Regex;
|
||||
mutable cmsys::RegularExpression cmAtVarRegex;
|
||||
mutable cmsys::RegularExpression cmNamedCurly;
|
||||
|
||||
std::vector<cmMakefile*> UnConfiguredDirectories;
|
||||
@@ -1239,19 +1238,11 @@ private:
|
||||
class BuildsystemFileScope;
|
||||
friend class BuildsystemFileScope;
|
||||
|
||||
// CMP0053 == old
|
||||
MessageType ExpandVariablesInStringOld(std::string& errorstr,
|
||||
std::string& source,
|
||||
bool escapeQuotes, bool noEscapes,
|
||||
bool atOnly, const char* filename,
|
||||
long line, bool removeEmpty,
|
||||
bool replaceAt) const;
|
||||
// CMP0053 == new
|
||||
MessageType ExpandVariablesInStringNew(std::string& errorstr,
|
||||
std::string& source,
|
||||
bool escapeQuotes, bool noEscapes,
|
||||
bool atOnly, const char* filename,
|
||||
long line, bool replaceAt) const;
|
||||
MessageType ExpandVariablesInStringImpl(std::string& errorstr,
|
||||
std::string& source,
|
||||
bool escapeQuotes, bool noEscapes,
|
||||
bool atOnly, const char* filename,
|
||||
long line, bool replaceAt) const;
|
||||
|
||||
bool ValidateCustomCommand(const cmCustomCommandLines& commandLines) const;
|
||||
|
||||
@@ -1270,6 +1261,5 @@ private:
|
||||
std::set<std::string> WarnedCMP0074;
|
||||
std::set<std::string> WarnedCMP0144;
|
||||
bool IsSourceFileTryCompile;
|
||||
mutable bool SuppressSideEffects;
|
||||
ImportedTargetScope CurrentImportedTargetScope = ImportedTargetScope::Local;
|
||||
};
|
||||
|
||||
@@ -158,7 +158,7 @@ class cmMakefile;
|
||||
3, 1, 0, NEW) \
|
||||
SELECT(POLICY, CMP0053, \
|
||||
"Simplify variable reference and escape sequence evaluation.", 3, 1, \
|
||||
0, WARN) \
|
||||
0, NEW) \
|
||||
SELECT( \
|
||||
POLICY, CMP0054, \
|
||||
"Only interpret if() arguments as variables or keywords when unquoted.", \
|
||||
|
||||
@@ -84,7 +84,7 @@ check_cmake_test(String
|
||||
# Execute each test listed in StringTestScript.cmake:
|
||||
#
|
||||
set(scriptname "@CMAKE_CURRENT_SOURCE_DIR@/StringTestScript.cmake")
|
||||
set(number_of_tests_expected 74)
|
||||
set(number_of_tests_expected 72)
|
||||
|
||||
include("@CMAKE_CURRENT_SOURCE_DIR@/ExecuteScriptTests.cmake")
|
||||
execute_all_script_tests(${scriptname} number_of_tests_executed)
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
message(STATUS "testname='${testname}'")
|
||||
|
||||
function(test_configure_line_number EXPRESSION POLICY)
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0053 ${POLICY})
|
||||
function(test_configure_line_number EXPRESSION)
|
||||
string(CONFIGURE
|
||||
"${EXPRESSION}" v) # line should indicate string() call
|
||||
math(EXPR vplus3 "${v} + 3")
|
||||
@@ -10,7 +8,6 @@ function(test_configure_line_number EXPRESSION POLICY)
|
||||
message(SEND_ERROR "Couldn't configure CMAKE_CURRENT_LIST_LINE, evaluated into '${v}'")
|
||||
endif()
|
||||
message(STATUS "v='${v}'")
|
||||
cmake_policy(POP)
|
||||
endfunction()
|
||||
|
||||
if(testname STREQUAL empty) # fail
|
||||
@@ -45,16 +42,10 @@ elseif(testname STREQUAL configure_escape_quotes) # pass
|
||||
string(CONFIGURE "this is @testname@" v ESCAPE_QUOTES)
|
||||
message(STATUS "v='${v}'")
|
||||
|
||||
elseif(testname STREQUAL configure_line_number_CMP0053_old) # pass
|
||||
test_configure_line_number("\${CMAKE_CURRENT_LIST_LINE}" OLD)
|
||||
|
||||
elseif(testname STREQUAL configure_line_number_CMP0053_new) # pass
|
||||
elseif(testname STREQUAL configure_line_number_curly) # pass
|
||||
test_configure_line_number("\${CMAKE_CURRENT_LIST_LINE}" NEW)
|
||||
|
||||
elseif(testname STREQUAL configure_line_number_CMP0053_old_use_at) # pass
|
||||
test_configure_line_number("\@CMAKE_CURRENT_LIST_LINE\@" OLD)
|
||||
|
||||
elseif(testname STREQUAL configure_line_number_CMP0053_new_use_at) # pass
|
||||
elseif(testname STREQUAL configure_line_number_at) # pass
|
||||
test_configure_line_number("\@CMAKE_CURRENT_LIST_LINE\@" NEW)
|
||||
|
||||
elseif(testname STREQUAL configure_bogus) # fail
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
^CMake Deprecation Warning at CMP0053-OLD.cmake:1 \(cmake_policy\):
|
||||
The OLD behavior for policy CMP0053 will be removed from a future version
|
||||
of CMake.
|
||||
|
||||
The cmake-policies\(7\) manual explains that the OLD behaviors of all
|
||||
policies are deprecated and that a policy should be set to OLD only under
|
||||
specific short-term circumstances. Projects should be ported to the NEW
|
||||
behavior and not rely on setting a policy to OLD.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
+
|
||||
called
|
||||
--><--$
|
||||
@@ -1,8 +0,0 @@
|
||||
cmake_policy(SET CMP0053 OLD)
|
||||
|
||||
function (watch_callback)
|
||||
message("called")
|
||||
endfunction ()
|
||||
|
||||
variable_watch(test watch_callback)
|
||||
message("-->${test}<--")
|
||||
@@ -1,2 +0,0 @@
|
||||
^called
|
||||
--><--$
|
||||
@@ -1,6 +0,0 @@
|
||||
function (watch_callback)
|
||||
message("called")
|
||||
endfunction ()
|
||||
|
||||
variable_watch(test watch_callback)
|
||||
message("-->${test}<--")
|
||||
@@ -1,3 +1,3 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(${RunCMake_TEST} CXX)
|
||||
include(${RunCMake_TEST}.cmake)
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
include(RunCMake)
|
||||
set(RunCMake_IGNORE_POLICY_VERSION_DEPRECATION ON)
|
||||
|
||||
run_cmake(CMP0053-OLD)
|
||||
run_cmake(CMP0053-NEW)
|
||||
run_cmake(CMP0053-WARN)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.19) # CMP0053
|
||||
cmake_minimum_required(VERSION 3.19)
|
||||
|
||||
include(RunCMake)
|
||||
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
cmake_policy(SET CMP0053 OLD)
|
||||
message(STATUS "'${uninitialized_variable}'")
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message(STATUS "'${uninitialized_variable}'")
|
||||
|
||||
@@ -1,52 +1,22 @@
|
||||
^CMake Warning \(dev\) at warn-uninitialized.cmake:3 \(set\):
|
||||
uninitialized variable 'OLD_WARN_FROM_NORMAL_CMAKE_FILE_INSIDE_BRACES'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:4 \(set\):
|
||||
uninitialized variable 'OLD_WARN_FROM_NORMAL_CMAKE_FILE_IN_ATS'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:5 \(string\):
|
||||
uninitialized variable 'OLD_WARN_FROM_STRING_CONFIGURE_INSIDE_BRACES'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:7 \(configure_file\):
|
||||
uninitialized variable 'OLD_WARN_FROM_CONFIGURE_FILE_INSIDE_AT'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:8 \(string\):
|
||||
uninitialized variable 'OLD_WARN_FROM_STRING_CONFIGURE_INSIDE_AT'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:13 \(set\):
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:1 \(set\):
|
||||
uninitialized variable 'NEW_WARN_FROM_NORMAL_CMAKE_FILE_INSIDE_BRACES'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:14 \(string\):
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:2 \(string\):
|
||||
uninitialized variable 'NEW_WARN_FROM_STRING_CONFIGURE_INSIDE_BRACES'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:16 \(configure_file\):
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:4 \(configure_file\):
|
||||
uninitialized variable 'NEW_WARN_FROM_CONFIGURE_FILE_INSIDE_AT'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:17 \(string\):
|
||||
CMake Warning \(dev\) at warn-uninitialized.cmake:5 \(string\):
|
||||
uninitialized variable 'NEW_WARN_FROM_STRING_CONFIGURE_INSIDE_AT'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
|
||||
@@ -1,18 +1,5 @@
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0053 OLD)
|
||||
set(FOO "${OLD_WARN_FROM_NORMAL_CMAKE_FILE_INSIDE_BRACES}")
|
||||
set(FOO "@OLD_WARN_FROM_NORMAL_CMAKE_FILE_IN_ATS@")
|
||||
string(CONFIGURE "\${OLD_WARN_FROM_STRING_CONFIGURE_INSIDE_BRACES}" OUT1)
|
||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/file1.in "\@OLD_WARN_FROM_CONFIGURE_FILE_INSIDE_AT\@")
|
||||
configure_file(${CMAKE_CURRENT_BINARY_DIR}/file1.in file1.out)
|
||||
string(CONFIGURE "\@OLD_WARN_FROM_STRING_CONFIGURE_INSIDE_AT\@" OUT2)
|
||||
cmake_policy(POP)
|
||||
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
set(FOO "${NEW_WARN_FROM_NORMAL_CMAKE_FILE_INSIDE_BRACES}")
|
||||
string(CONFIGURE "\${NEW_WARN_FROM_STRING_CONFIGURE_INSIDE_BRACES}" OUT3)
|
||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/file2.in "\@NEW_WARN_FROM_CONFIGURE_FILE_INSIDE_AT\@")
|
||||
configure_file(${CMAKE_CURRENT_BINARY_DIR}/file2.in file2.out)
|
||||
string(CONFIGURE "@NEW_WARN_FROM_STRING_CONFIGURE_INSIDE_AT@" OUT4)
|
||||
cmake_policy(POP)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
|
||||
set(right "wrong")
|
||||
set(var "\${right}")
|
||||
# Not expanded here with the new policy.
|
||||
@@ -1 +1 @@
|
||||
-->wrong<--
|
||||
-->\${right}<--
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Deprecation Warning at CMP0053-At-OLD.cmake:1 \(cmake_policy\):
|
||||
The OLD behavior for policy CMP0053 will be removed from a future version
|
||||
of CMake.
|
||||
|
||||
The cmake-policies\(7\) manual explains that the OLD behaviors of all
|
||||
policies are deprecated and that a policy should be set to OLD only under
|
||||
specific short-term circumstances. Projects should be ported to the NEW
|
||||
behavior and not rely on setting a policy to OLD.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
+
|
||||
-->wrong<--$
|
||||
@@ -1,9 +0,0 @@
|
||||
cmake_policy(SET CMP0053 OLD)
|
||||
|
||||
set(right "wrong")
|
||||
set(var "\${right}")
|
||||
# Expanded here with the old policy.
|
||||
set(ref "@var@")
|
||||
|
||||
string(CONFIGURE "${ref}" output)
|
||||
message("-->${output}<--")
|
||||
@@ -1,27 +0,0 @@
|
||||
^CMake Warning \(dev\) at CMP0053-At-WARN-newlines.cmake:4 \(set\):
|
||||
Policy CMP0053 is not set: Simplify variable reference and escape sequence
|
||||
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the
|
||||
cmake_policy command to set the policy and suppress this warning.
|
||||
|
||||
For input:
|
||||
|
||||
'
|
||||
@var@
|
||||
'
|
||||
|
||||
the old evaluation rules produce:
|
||||
|
||||
'
|
||||
\${right}
|
||||
'
|
||||
|
||||
but the new evaluation rules produce:
|
||||
|
||||
'
|
||||
@var@
|
||||
'
|
||||
|
||||
Using the old result for compatibility since the policy is not set.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.$
|
||||
@@ -1,6 +0,0 @@
|
||||
set(right "wrong")
|
||||
set(var "\${right}")
|
||||
# Expanded here with the old policy.
|
||||
set(ref "
|
||||
@var@
|
||||
")
|
||||
@@ -1,21 +0,0 @@
|
||||
^CMake Warning \(dev\) at CMP0053-At-WARN.cmake:4 \(set\):
|
||||
Policy CMP0053 is not set: Simplify variable reference and escape sequence
|
||||
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the
|
||||
cmake_policy command to set the policy and suppress this warning.
|
||||
|
||||
For input:
|
||||
|
||||
'@var@'
|
||||
|
||||
the old evaluation rules produce:
|
||||
|
||||
'\${right}'
|
||||
|
||||
but the new evaluation rules produce:
|
||||
|
||||
'@var@'
|
||||
|
||||
Using the old result for compatibility since the policy is not set.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.$
|
||||
@@ -1,4 +0,0 @@
|
||||
set(right "wrong")
|
||||
set(var "\${right}")
|
||||
# Expanded here with the old policy.
|
||||
set(ref "@var@")
|
||||
@@ -1,24 +0,0 @@
|
||||
^CMake Deprecation Warning at CMP0053-Dollar-OLD.cmake:1 \(cmake_policy\):
|
||||
The OLD behavior for policy CMP0053 will be removed from a future version
|
||||
of CMake.
|
||||
|
||||
The cmake-policies\(7\) manual explains that the OLD behaviors of all
|
||||
policies are deprecated and that a policy should be set to OLD only under
|
||||
specific short-term circumstances. Projects should be ported to the NEW
|
||||
behavior and not rely on setting a policy to OLD.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
+
|
||||
-->value<--
|
||||
CMake Error at CMP0053-Dollar-OLD.cmake:6 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*CMP0053-Dollar-OLD.cmake:6
|
||||
|
||||
when parsing string
|
||||
|
||||
-->\${\$}<--
|
||||
|
||||
syntax error, unexpected \$, expecting } \(6\)
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,6 +0,0 @@
|
||||
cmake_policy(SET CMP0053 OLD)
|
||||
|
||||
set($ value)
|
||||
set(dollar $)
|
||||
message("-->${${dollar}}<--")
|
||||
message("-->${$}<--")
|
||||
@@ -1,56 +0,0 @@
|
||||
^CMake Warning \(dev\) at CMP0053-NUL.cmake:1 \(set\):
|
||||
Policy CMP0053 is not set: Simplify variable reference and escape sequence
|
||||
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the
|
||||
cmake_policy command to set the policy and suppress this warning.
|
||||
|
||||
For input:
|
||||
|
||||
'\\0'
|
||||
|
||||
the old evaluation rules produce:
|
||||
|
||||
''
|
||||
|
||||
but the new evaluation rules produce an error:
|
||||
|
||||
Syntax error in cmake code at
|
||||
.*/Tests/RunCMake/Syntax/CMP0053-NUL.cmake:1
|
||||
when parsing string
|
||||
\\0
|
||||
Invalid character escape '\\0'.
|
||||
|
||||
Using the old result for compatibility since the policy is not set.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Warning \(dev\) at CMP0053-NUL.cmake:2 \(set\):
|
||||
Policy CMP0053 is not set: Simplify variable reference and escape sequence
|
||||
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the
|
||||
cmake_policy command to set the policy and suppress this warning.
|
||||
|
||||
For input:
|
||||
|
||||
'\\0'
|
||||
|
||||
the old evaluation rules produce:
|
||||
|
||||
''
|
||||
|
||||
but the new evaluation rules produce an error:
|
||||
|
||||
Syntax error in cmake code at
|
||||
.*/Tests/RunCMake/Syntax/CMP0053-NUL.cmake:2
|
||||
when parsing string
|
||||
\\0
|
||||
Invalid character escape '\\0'.
|
||||
|
||||
Using the old result for compatibility since the policy is not set.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
--><--
|
||||
--><--
|
||||
--><--
|
||||
--><--$
|
||||
@@ -1,6 +0,0 @@
|
||||
set(qnul "\0")
|
||||
set(nul \0)
|
||||
message(-->${nul}<--)
|
||||
message(-->${qnul}<--)
|
||||
message("-->${nul}<--")
|
||||
message("-->${qnul}<--")
|
||||
@@ -1,4 +0,0 @@
|
||||
^CMake Error at CMP0053-NameWithCarriageReturn.cmake:2 \(message\):
|
||||
message called with incorrect number of arguments
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message(${var\rwith\rcarriagereturn})
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message("${var\rwith\rcarriagereturn}")
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,4 +0,0 @@
|
||||
^CMake Error at CMP0053-NameWithEscapedSpaces.cmake:2 \(message\):
|
||||
message called with incorrect number of arguments
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message(${var\ with\ escaped\ space})
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message("${var\ with\ escaped\ space}")
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,4 +0,0 @@
|
||||
^CMake Error at CMP0053-NameWithEscapedTabs.cmake:2 \(message\):
|
||||
message called with incorrect number of arguments
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message(${var\ with\ escaped\ tab})
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message("${var\ with\ escaped\ tab}")
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,4 +0,0 @@
|
||||
^CMake Error at CMP0053-NameWithNewline.cmake:2 \(message\):
|
||||
message called with incorrect number of arguments
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message(${var\nwith\nnewline})
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message("${var\nwith\nnewline}")
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Error at CMP0053-NameWithSpaces.cmake:2 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/CMP0053-NameWithSpaces.cmake:2
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var
|
||||
|
||||
There is an unterminated variable reference.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message(${var with space})
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Error at CMP0053-NameWithSpacesQuoted.cmake:2 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/CMP0053-NameWithSpacesQuoted.cmake:2
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var with space}
|
||||
|
||||
Invalid character \(' '\) in a variable name: 'var'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message("${var with space}")
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Error at CMP0053-NameWithTabs.cmake:2 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/CMP0053-NameWithTabs.cmake:2
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var
|
||||
|
||||
There is an unterminated variable reference.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message(${var with tab})
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Error at CMP0053-NameWithTabsQuoted.cmake:2 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/CMP0053-NameWithTabsQuoted.cmake:2
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var with tab}
|
||||
|
||||
Invalid character \(' '\) in a variable name: 'var'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,2 +0,0 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
message("${var with tab}")
|
||||
@@ -1,28 +0,0 @@
|
||||
^CMake Warning \(dev\) at CMP0053-WARN.cmake:2 \(message\):
|
||||
Policy CMP0053 is not set: Simplify variable reference and escape sequence
|
||||
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the
|
||||
cmake_policy command to set the policy and suppress this warning.
|
||||
|
||||
For input:
|
||||
|
||||
'\\'
|
||||
|
||||
the old evaluation rules produce:
|
||||
|
||||
'\\'
|
||||
|
||||
but the new evaluation rules produce an error:
|
||||
|
||||
Syntax error in cmake code at
|
||||
.*/Tests/RunCMake/Syntax/CMP0053-WARN.cmake:2
|
||||
when parsing string
|
||||
\\
|
||||
Invalid character escape '\\' \(at end of input\).
|
||||
|
||||
Using the old result for compatibility since the policy is not set.
|
||||
Call Stack \(most recent call first\):
|
||||
CMP0053-WARN.cmake:5 \(escape\)
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
\\$
|
||||
@@ -1,5 +0,0 @@
|
||||
macro (escape str)
|
||||
message("${str}")
|
||||
endmacro ()
|
||||
|
||||
escape("\\")
|
||||
@@ -1,3 +1,3 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(${RunCMake_TEST} NONE)
|
||||
include(${RunCMake_TEST}.cmake)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
|
||||
set($ value)
|
||||
set(dollar $)
|
||||
message("-->${${dollar}}<--")
|
||||
@@ -1,7 +1,7 @@
|
||||
CMake Error at Escape2.cmake:4 \(message\):
|
||||
CMake Error at Escape2.cmake:2 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/Escape2.cmake:4
|
||||
.*/Tests/RunCMake/Syntax/Escape2.cmake:2
|
||||
|
||||
when parsing string
|
||||
|
||||
@@ -9,5 +9,5 @@ CMake Error at Escape2.cmake:4 \(message\):
|
||||
|
||||
Invalid character escape '\\' \(at end of input\).
|
||||
Call Stack \(most recent call first\):
|
||||
Escape2.cmake:7 \(escape\)
|
||||
Escape2.cmake:5 \(escape\)
|
||||
CMakeLists.txt:3 \(include\)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
|
||||
macro (escape str)
|
||||
message("${str}")
|
||||
endmacro ()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
CMake Error at EscapeChar-@char@-@testnum@.cmake:3 \(message\):
|
||||
CMake Error at EscapeChar-@char@-@testnum@.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/EscapeChar-@char@-@testnum@.cmake:3
|
||||
.*/Tests/RunCMake/Syntax/EscapeChar-@char@-@testnum@.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
|
||||
message("-->\@char@<--")
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
|
||||
set("semicolon;in;name" semicolon)
|
||||
set("dollar$in$name" dollar)
|
||||
set("brace{in}name" brace)
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
-->"<--
|
||||
^-->\\"<--
|
||||
-->\\"<--$
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
^CMake Error at NameWithCarriageReturn.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/NameWithCarriageReturn.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var\\rwith\\rcarriagereturn}
|
||||
|
||||
syntax error, unexpected cal_SYMBOL, expecting } \(6\)
|
||||
message called with incorrect number of arguments
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Error at NameWithCarriageReturnQuoted.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/NameWithCarriageReturnQuoted.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var\\rwith\\rcarriagereturn}
|
||||
|
||||
syntax error, unexpected cal_SYMBOL, expecting } \(6\)
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,12 +1,4 @@
|
||||
^CMake Error at NameWithEscapedSpaces.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/NameWithEscapedSpaces.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var\\ with\\ escaped\\ space}
|
||||
|
||||
syntax error, unexpected cal_SYMBOL, expecting } \(6\)
|
||||
message called with incorrect number of arguments
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
CMakeLists.txt:3 \(include\)
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Error at NameWithEscapedSpacesQuoted.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/NameWithEscapedSpacesQuoted.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var\\ with\\ escaped\\ space}
|
||||
|
||||
syntax error, unexpected cal_SYMBOL, expecting } \(6\)
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,12 +1,4 @@
|
||||
^CMake Error at NameWithEscapedTabs.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/NameWithEscapedTabs.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var\\ with\\ escaped\\ tab}
|
||||
|
||||
Invalid escape sequence \\.?
|
||||
message called with incorrect number of arguments
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
CMakeLists.txt:3 \(include\)
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Error at NameWithEscapedTabsQuoted.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/NameWithEscapedTabsQuoted.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var\\ with\\ escaped\\ tab}
|
||||
|
||||
Invalid escape sequence \\.?
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -1,12 +1,4 @@
|
||||
^CMake Error at NameWithNewline.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/NameWithNewline.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var\\nwith\\nnewline}
|
||||
|
||||
syntax error, unexpected cal_SYMBOL, expecting } \(6\)
|
||||
message called with incorrect number of arguments
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,12 +0,0 @@
|
||||
^CMake Error at NameWithNewlineQuoted.cmake:1 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/NameWithNewlineQuoted.cmake:1
|
||||
|
||||
when parsing string
|
||||
|
||||
\${var\\nwith\\nnewline}
|
||||
|
||||
syntax error, unexpected cal_SYMBOL, expecting } \(6\)
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
@@ -7,6 +7,6 @@
|
||||
|
||||
\${var
|
||||
|
||||
syntax error, unexpected end of file, expecting } \(6\)
|
||||
There is an unterminated variable reference.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
|
||||
\${var with space}
|
||||
|
||||
syntax error, unexpected cal_SYMBOL, expecting } \(3\)
|
||||
Invalid character \(' '\) in a variable name: 'var'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
|
||||
\${var
|
||||
|
||||
syntax error, unexpected end of file, expecting } \(6\)
|
||||
There is an unterminated variable reference.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
|
||||
\${var with tab}
|
||||
|
||||
syntax error, unexpected cal_SYMBOL, expecting } \(3\)
|
||||
Invalid character \(' '\) in a variable name: 'var'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)$
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
1
|
||||
@@ -1,4 +1,4 @@
|
||||
CMake Warning \(dev\) at ParenInENV.cmake:2:
|
||||
CMake Warning \(dev\) at ParenInENV1.cmake:2:
|
||||
Syntax Warning in cmake code at column 21
|
||||
|
||||
Argument not separated from preceding token by whitespace.
|
||||
@@ -6,15 +6,15 @@ Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
This warning is for project developers. Use -Wno-dev to suppress it.
|
||||
|
||||
CMake Error at ParenInENV.cmake:2 \(message\):
|
||||
CMake Error at ParenInENV1.cmake:2 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/ParenInENV.cmake:2
|
||||
.*/Tests/RunCMake/Syntax/ParenInENV1.cmake:2
|
||||
|
||||
when parsing string
|
||||
|
||||
-->\$ENV{e
|
||||
|
||||
syntax error, unexpected end of file, expecting } \(10\)
|
||||
There is an unterminated variable reference\.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists.txt:3 \(include\)
|
||||
@@ -1,3 +1,2 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
set("ENV{e(x)}" value)
|
||||
message(-->$ENV{e\(x\)}<--)
|
||||
@@ -1 +0,0 @@
|
||||
-->value<--
|
||||
13
Tests/RunCMake/Syntax/ParenInQuotedENV1-stderr.txt
Normal file
13
Tests/RunCMake/Syntax/ParenInQuotedENV1-stderr.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
^CMake Error at ParenInQuotedENV1\.cmake:2 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
[^
|
||||
]*/Tests/RunCMake/Syntax/ParenInQuotedENV1\.cmake:2
|
||||
|
||||
when parsing string
|
||||
|
||||
-->\$ENV{e\(x\)}<--
|
||||
|
||||
Invalid character \('\('\) in a variable name: 'e'
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:3 \(include\)$
|
||||
@@ -1,3 +1,2 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
set("ENV{e(x)}" value)
|
||||
message("-->$ENV{e\(x\)}<--")
|
||||
@@ -1,7 +1,7 @@
|
||||
CMake Error at ParenInVarName0.cmake:4 \(message\):
|
||||
CMake Error at ParenInVarName0.cmake:2 \(message\):
|
||||
Syntax error in cmake code at
|
||||
|
||||
.*/Tests/RunCMake/Syntax/ParenInVarName0.cmake:4
|
||||
.*/Tests/RunCMake/Syntax/ParenInVarName0.cmake:2
|
||||
|
||||
when parsing string
|
||||
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
cmake_policy(SET CMP0053 NEW)
|
||||
|
||||
set("e(x)" value)
|
||||
message("-->${e(x)}<--")
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user