Skip to content

Commit

Permalink
ogre: Do not assume that ogre plugins have lib prefix on macOS (gazeb…
Browse files Browse the repository at this point in the history
…osim#454)

Signed-off-by: Silvio <silvio@traversaro.it>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
  • Loading branch information
traversaro authored and WilliamLewww committed Dec 7, 2021
1 parent 0973b0b commit 3bbd003
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ogre/src/OgreRenderEngine.cc
Expand Up @@ -425,20 +425,17 @@ void OgreRenderEngine::LoadPlugins()
std::vector<std::string>::iterator piter;

#ifdef __APPLE__
std::string prefix = "lib";
std::string extension = ".dylib";
#elif _WIN32
std::string prefix = "";
std::string extension = ".dll";
#else
std::string prefix = "";
std::string extension = ".so";
#endif

plugins.push_back(path+"/"+prefix+"RenderSystem_GL");
plugins.push_back(path+"/"+prefix+"Plugin_ParticleFX");
plugins.push_back(path+"/"+prefix+"Plugin_BSPSceneManager");
plugins.push_back(path+"/"+prefix+"Plugin_OctreeSceneManager");
plugins.push_back(path+"/RenderSystem_GL");
plugins.push_back(path+"/Plugin_ParticleFX");
plugins.push_back(path+"/Plugin_BSPSceneManager");
plugins.push_back(path+"/Plugin_OctreeSceneManager");

#ifdef HAVE_OCULUS
plugins.push_back(path+"/Plugin_CgProgramManager");
Expand Down

0 comments on commit 3bbd003

Please sign in to comment.