136 const std::string factory_name)
139 std::string fullpath;
141 std::string ext =
".dll";
143 std::string ext =
".so";
145 std::string basename;
147 if (filename.find(ext) != std::string::npos) {
148 basename = filename.substr(0, filename.size() - ext.size());
155#if defined(_MSC_VER) && !defined(NDEBUG)
158 fullpath = basename +
"d" + ext;
159 if (
plugin->
factory.open(fullpath.c_str(), factory_name.c_str()))
165 fullpath = basename + ext;
166 if (
plugin->
factory.open(fullpath.c_str(), factory_name.c_str()))
169#if defined(_MSC_VER) && defined(NDEBUG)
172 fullpath = basename +
"d" + ext;
173 if (
plugin->
factory.open(fullpath.c_str(), factory_name.c_str()))
183# if defined(_MSC_VER) && !defined(NDEBUG)
186 fullpath = std::string(CMAKE_INTDIR) +
"/" + basename +
"d" + ext;
187 if (
plugin->
factory.open(fullpath.c_str(), factory_name.c_str()))
193 fullpath = std::string(CMAKE_INTDIR) +
"/" + basename + ext;
194 if (
plugin->
factory.open(fullpath.c_str(), factory_name.c_str()))
197# if defined(_MSC_VER) && defined(NDEBUG)
200 fullpath = std::string(CMAKE_INTDIR) +
"/" + basename +
"d" + ext;
201 if (
plugin->
factory.open(fullpath.c_str(), factory_name.c_str()))