summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-21 17:37:06 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-21 17:37:06 (GMT)
commit41925efe760a2e84e85b52f513668c9c46ed2744 (patch)
treee0c0fd1e30efdb47cf031b4c81a6366396da49af /Source
parent802b36fb62c7dc9a471bdb630536c82491e9cd0e (diff)
downloadCMake-41925efe760a2e84e85b52f513668c9c46ed2744.zip
CMake-41925efe760a2e84e85b52f513668c9c46ed2744.tar.gz
CMake-41925efe760a2e84e85b52f513668c9c46ed2744.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 15b44a6..9a025d9 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");