diff options
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 985dd98..4238a53 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -30,6 +30,7 @@ cmTarget::cmTarget() m_Makefile = 0; m_LinkLibrariesAnalyzed = false; m_LinkDirectoriesComputed = false; + m_HaveInstallRule = false; } void cmTarget::SetType(TargetType type, const char* name) @@ -1390,7 +1391,7 @@ bool cmTarget::NeedRelinkBeforeInstall() // If there is no install location this target will not be installed // and therefore does not need relinking. - if(this->GetInstallPath().empty()) + if(!this->GetHaveInstallRule()) { return false; } |