summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-01-25 19:12:58 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-01-25 19:12:58 (GMT)
commitf5ce41ee39578c1662ea3eebf32bdb597895197e (patch)
tree00b442baf23389bb7ffe642de239367f0ed124f6 /Source/cmTryCompileCommand.cxx
parentb442e864924935656b589369ec35ab0e66e30216 (diff)
downloadCMake-f5ce41ee39578c1662ea3eebf32bdb597895197e.zip
CMake-f5ce41ee39578c1662ea3eebf32bdb597895197e.tar.gz
CMake-f5ce41ee39578c1662ea3eebf32bdb597895197e.tar.bz2
ENH: fix double CMAKE_(LANG)_FLAGS problem in try compile
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx
index ce0b61a..900d2d7 100644
--- a/Source/cmTryCompileCommand.cxx
+++ b/Source/cmTryCompileCommand.cxx
@@ -175,7 +175,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
langFlags += lang;
langFlags += "_FLAGS";
fprintf(fout, "SET(CMAKE_VERBOSE_MAKEFILE 1)\n");
- fprintf(fout, "SET(CMAKE_%s_FLAGS \"${CMAKE_%s_FLAGS}", lang, lang);
+ fprintf(fout, "SET(CMAKE_%s_FLAGS \"", lang);
const char* flags = mf->GetDefinition(langFlags.c_str());
if(flags)
{