diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-11-29 16:00:17 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-11-29 16:00:17 (GMT) |
commit | daa6d2bc04ff8631559ffcb5141f197cac33e755 (patch) | |
tree | 34559ea255e91d274cfa9d38ed7be7f01a906546 /Source/cmMakefile.cxx | |
parent | e9a80cd8a90c3309d32df58b27dcc6e061f5928f (diff) | |
download | CMake-daa6d2bc04ff8631559ffcb5141f197cac33e755.zip CMake-daa6d2bc04ff8631559ffcb5141f197cac33e755.tar.gz CMake-daa6d2bc04ff8631559ffcb5141f197cac33e755.tar.bz2 |
ENH: updated handling of debug and optimized target link libraries
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 488c41c..3bb4c6c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -959,26 +959,6 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target, } } } - // make sure the type is correct if it is currently - // general. So if you do a - // target_link_libraries(foo optimized bar) it will stay - // optimized and not use the lookup. As there maybe the - // case where someone has specifed that a library is both - // debug and optimized. - std::string linkType = lib; - linkType += "_LINK_TYPE"; - const char* linkTypeString = this->GetDefinition( linkType.c_str() ); - if(llt == cmTarget::GENERAL && linkTypeString) - { - if(strcmp(linkTypeString, "debug") == 0) - { - llt = cmTarget::DEBUG; - } - if(strcmp(linkTypeString, "optimized") == 0) - { - llt = cmTarget::OPTIMIZED; - } - } i->second.AddLinkLibrary( *this, target, lib, llt ); } else |