diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 2bd0cb28d..bf805556c 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -386,7 +386,7 @@ cmGlobalGenerator::EnableLanguage(std::vectorconst& languages, // so that it will get tested the next time cmake is run if(!mf->IsOn(compilerWorks.c_str())) { - std::string fpath = rootBin; + fpath = rootBin; fpath += "/CMake"; fpath += lang; fpath += "Compiler.cmake";