diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-06-22 13:12:05 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-06-22 13:12:05 (GMT) |
commit | 3b66c0a5740482c478b48f1bd3f295bfe54a82fa (patch) | |
tree | d0362f73417333eee7ff26b41759063ac83212c8 /Source/cmTarget.cxx | |
parent | 369308ca767367e5dd68fd783c830fd8a57ec751 (diff) | |
download | CMake-3b66c0a5740482c478b48f1bd3f295bfe54a82fa.zip CMake-3b66c0a5740482c478b48f1bd3f295bfe54a82fa.tar.gz CMake-3b66c0a5740482c478b48f1bd3f295bfe54a82fa.tar.bz2 |
ENH: some better checks
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index dfdde50..a3fb589 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -693,6 +693,12 @@ void cmTarget::SetProperty(const char* prop, const char* value) void cmTarget::UpdateLocation() { + // make sure we have a makefile + if (!m_Makefile) + { + return; + } + // set the LOCATION property of the target std::string target_location; switch( this->GetType() ) @@ -712,7 +718,7 @@ void cmTarget::UpdateLocation() } if ( target_location.size() == 0 ) { - target_location += m_Makefile->GetCurrentOutputDirectory(); + target_location += m_Makefile->GetStartOutputDirectory(); } if ( target_location.size() > 0 ) { |