From 25abfaa578de547ec885936cabf7e202c685ab33 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 6 Oct 2021 19:45:53 +0200 Subject: [PATCH] ogre: Do not assume that ogre plugins have lib prefix on macOS Signed-off-by: Silvio --- ogre/src/OgreRenderEngine.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ogre/src/OgreRenderEngine.cc b/ogre/src/OgreRenderEngine.cc index b9e394462..ed66934ec 100644 --- a/ogre/src/OgreRenderEngine.cc +++ b/ogre/src/OgreRenderEngine.cc @@ -421,20 +421,17 @@ void OgreRenderEngine::LoadPlugins() std::vector::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");