cmGeneratorTarget: Fix Fortran module directory regression

Refactoring in commit 49f10f0d (cmGeneratorTarget: Adopt Fortran module
directory generation, 2016-06-10) accidentally made a local variable
declared `static` causing results to be re-used incorrectly.
This commit is contained in:
Brad King 2016-06-21 13:37:06 -04:00
parent 802b36fb62
commit 41925efe76
1 changed files with 1 additions and 1 deletions

View File

@ -3855,7 +3855,7 @@ std::string cmGeneratorTarget::GetFortranModuleDirectory() const
std::string cmGeneratorTarget::CreateFortranModuleDirectory() const std::string cmGeneratorTarget::CreateFortranModuleDirectory() const
{ {
static std::string mod_dir; std::string mod_dir;
const char* target_mod_dir = this->GetProperty("Fortran_MODULE_DIRECTORY"); const char* target_mod_dir = this->GetProperty("Fortran_MODULE_DIRECTORY");
const char* moddir_flag = const char* moddir_flag =
this->Makefile->GetDefinition("CMAKE_Fortran_MODDIR_FLAG"); this->Makefile->GetDefinition("CMAKE_Fortran_MODDIR_FLAG");