diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-19 22:42:01 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-20 22:52:22 (GMT) |
commit | 3ebc62850c7461dca4723b063b5e5f019409db84 (patch) | |
tree | d9521786e66ef5545aaff04e4e1265d5cd29e3e6 /Source/cmGeneratorTarget.cxx | |
parent | 311018e5ad27abf7c76003ec91d3f26ef316e3cc (diff) | |
download | CMake-3ebc62850c7461dca4723b063b5e5f019409db84.zip CMake-3ebc62850c7461dca4723b063b5e5f019409db84.tar.gz CMake-3ebc62850c7461dca4723b063b5e5f019409db84.tar.bz2 |
cmGeneratorTarget: Move HaveWellDefinedOutputFiles from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index f41243e..1483af7 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1709,6 +1709,16 @@ cmListFileBacktrace cmGeneratorTarget::GetBacktrace() const } //---------------------------------------------------------------------------- +bool cmGeneratorTarget::HaveWellDefinedOutputFiles() const +{ + return + this->GetType() == cmState::STATIC_LIBRARY || + this->GetType() == cmState::SHARED_LIBRARY || + this->GetType() == cmState::MODULE_LIBRARY || + this->GetType() == cmState::EXECUTABLE; +} + +//---------------------------------------------------------------------------- const char* cmGeneratorTarget::GetExportMacro() const { // Define the symbol for targets that export symbols. @@ -4819,7 +4829,7 @@ cmGeneratorTarget::OutputInfo const* cmGeneratorTarget::GetOutputInfo( } // Only libraries and executables have well-defined output files. - if(!this->Target->HaveWellDefinedOutputFiles()) + if(!this->HaveWellDefinedOutputFiles()) { std::string msg = "cmGeneratorTarget::GetOutputInfo called for "; msg += this->GetName(); |