From 3bbd0034b5c30d8b3c626392d0279c11eea2cf1e Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 7 Oct 2021 08:20:00 +0200 Subject: [PATCH] ogre: Do not assume that ogre plugins have lib prefix on macOS (#454) Signed-off-by: Silvio Signed-off-by: William Lew --- 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 cb034aeac..e26c36e1d 100644 --- a/ogre/src/OgreRenderEngine.cc +++ b/ogre/src/OgreRenderEngine.cc @@ -425,20 +425,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");