diff options
author | Brad King <brad.king@kitware.com> | 2007-04-19 15:23:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-04-19 15:23:04 (GMT) |
commit | a7efb3feb739ba217592c093ea9158d503479d58 (patch) | |
tree | 53ac35c1390130d2b34193a1359e63361e668cff /Source | |
parent | 28f6b148f6a9241ede644aa2ca1497b86586eec2 (diff) | |
download | CMake-a7efb3feb739ba217592c093ea9158d503479d58.zip CMake-a7efb3feb739ba217592c093ea9158d503479d58.tar.gz CMake-a7efb3feb739ba217592c093ea9158d503479d58.tar.bz2 |
ENH: Removed code unnecessary now that DynamicLoader is implemented better.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index fe73ee8..9634512 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -290,14 +290,7 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args) CM_INIT_FUNCTION initFunction = (CM_INIT_FUNCTION) cmsys::DynamicLoader::GetSymbolAddress(lib, initFuncName.c_str()); - if ( !initFunction ) - { - initFuncName = "_"; - initFuncName += args[0]; - initFuncName += "Init"; - initFunction = (CM_INIT_FUNCTION)( - cmsys::DynamicLoader::GetSymbolAddress(lib, initFuncName.c_str())); - } + // if the symbol is found call it to set the name on the // function blocker if(initFunction) |