mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
BUG: Fixed @ONLY configuration to not try to parse ${} syntax at all. This fixes the original fix to bug#4393 and adds a test.
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
/* This should be configured to a commented undef with the curlies in place */
|
||||
#cmakedefine TEST_NOT_DEFINED ${TEST_NOT_DEFINED}
|
||||
|
||||
/* This complicated line should be configured unchanged: */
|
||||
static const char* configvar =
|
||||
"@$@$junk =~ s/#$xyz#/$foo_bar{$wibble}->{$xyz}/;@@";
|
||||
|
||||
int CheckMethod(const char* var, const char* val )
|
||||
{
|
||||
if ( !var )
|
||||
|
||||
@@ -24,6 +24,8 @@ int main(int, char*[])
|
||||
res += CheckMethod(tuvar, "CMAKE");
|
||||
res += CheckMethod(tlvar, "cmake");
|
||||
res += CheckMethod(relpath, "../../X11R6/bin/xnest");
|
||||
res += CheckMethod(configvar,
|
||||
"@$@$junk =~ s/#$xyz#/$foo_bar{$wibble}->{$xyz}/;@@");
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user