diff options
author | Brad King <brad.king@kitware.com> | 2012-03-13 15:53:28 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-03-13 15:53:28 (GMT) |
commit | 1ee4b65a7f8c9d0f50e8eb7dcf2dd74eb8b0e049 (patch) | |
tree | 89e3af52a812658c5175dbfeb46d32469d0c7f33 /Source/cmTarget.cxx | |
parent | 4770d5373ef040dd9b5e005b61e54a5e21019599 (diff) | |
parent | 0996f2a228a834d75ba9845ea6b899b60eb84712 (diff) | |
download | CMake-1ee4b65a7f8c9d0f50e8eb7dcf2dd74eb8b0e049.zip CMake-1ee4b65a7f8c9d0f50e8eb7dcf2dd74eb8b0e049.tar.gz CMake-1ee4b65a7f8c9d0f50e8eb7dcf2dd74eb8b0e049.tar.bz2 |
Merge topic 'cleanup-object-file-names'
0996f2a Hide Makefile local object info inside local generator
67734be VS: Simplify object name computation
4ae7f36 Remove unused partial OBJECT_FILES property implementation
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 43f2068..e6be83a 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1101,17 +1101,6 @@ void cmTarget::DefineProperties(cmake *cm) "better if VS_GLOBAL_QtVersion is set to the version " "FindQt4.cmake found. For example, \"4.7.3\""); -#if 0 - cm->DefineProperty - ("OBJECT_FILES", cmProperty::TARGET, - "Used to get the resulting list of object files that make up a " - "target.", - "This can be used to put object files from one library " - "into another library. It is a read only property. It " - "converts the source list for the target into a list of full " - "paths to object names that will be produced by the target."); -#endif - #define CM_TARGET_FILE_TYPES_DOC \ "There are three kinds of target files that may be built: " \ "archive, library, and runtime. " \ @@ -2613,54 +2602,6 @@ const char *cmTarget::GetProperty(const char* prop) } //---------------------------------------------------------------------------- -void cmTarget::ComputeObjectFiles() -{ - if (this->IsImported()) - { - return; - } -#if 0 - std::vector<std::string> dirs; - this->Makefile->GetLocalGenerator()-> - GetTargetObjectFileDirectories(this, - dirs); - std::string objectFiles; - std::string objExtensionLookup1 = "CMAKE_"; - std::string objExtensionLookup2 = "_OUTPUT_EXTENSION"; - - for(std::vector<std::string>::iterator d = dirs.begin(); - d != dirs.end(); ++d) - { - for(std::vector<cmSourceFile*>::iterator s = this->SourceFiles.begin(); - s != this->SourceFiles.end(); ++s) - { - cmSourceFile* sf = *s; - if(const char* lang = sf->GetLanguage()) - { - std::string lookupObj = objExtensionLookup1 + lang; - lookupObj += objExtensionLookup2; - const char* obj = this->Makefile->GetDefinition(lookupObj.c_str()); - if(obj) - { - if(objectFiles.size()) - { - objectFiles += ";"; - } - std::string objFile = *d; - objFile += "/"; - objFile += this->Makefile->GetLocalGenerator()-> - GetSourceObjectName(*sf); - objFile += obj; - objectFiles += objFile; - } - } - } - } - this->SetProperty("OBJECT_FILES", objectFiles.c_str()); -#endif -} - -//---------------------------------------------------------------------------- const char *cmTarget::GetProperty(const char* prop, cmProperty::ScopeType scope) { |