diff options
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index da33e07..6d9b419 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -337,6 +337,12 @@ void cmTarget::DefineProperties(cmake *cm) void cmTarget::SetType(TargetType type, const char* name) { this->Name = name; + if(type == cmTarget::INSTALL_FILES || + type == cmTarget::INSTALL_PROGRAMS || + type == cmTarget::INSTALL_DIRECTORY) + { + abort(); + } // only add dependency information for library targets this->TargetTypeValue = type; if(this->TargetTypeValue >= STATIC_LIBRARY @@ -664,12 +670,6 @@ void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf) { return; } - // this is only done for non install targets - if ((this->TargetTypeValue == cmTarget::INSTALL_FILES) - || (this->TargetTypeValue == cmTarget::INSTALL_PROGRAMS)) - { - return; - } // for each src lists add the classes for (std::vector<std::string>::const_iterator s = this->SourceLists.begin(); s != this->SourceLists.end(); ++s) |