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:
parent
802b36fb62
commit
41925efe76
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue