From 41925efe760a2e84e85b52f513668c9c46ed2744 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 21 Jun 2016 13:37:06 -0400 Subject: [PATCH] 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. --- Source/cmGeneratorTarget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 15b44a6e5..9a025d911 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -3855,7 +3855,7 @@ std::string cmGeneratorTarget::GetFortranModuleDirectory() 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* moddir_flag = this->Makefile->GetDefinition("CMAKE_Fortran_MODDIR_FLAG");