mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
BUG: Reverting previous change. It did not account for the possibility that the loaded command was built with a different compiler.
This commit is contained in:
@@ -290,7 +290,14 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user