diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 76c559f..831b1fb 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -3042,7 +3042,9 @@ MessageType cmMakefile::ExpandVariablesInStringNew( } break; case CACHE: - value = state->GetCacheEntryValue(lookup); + if (cmProp value2 = state->GetCacheEntryValue(lookup)) { + value = value2->c_str(); + } break; } // Get the string we're meant to append to. |