Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ogre: Do not assume that ogre plugins have lib prefix on macOS #454

Merged
merged 1 commit into from Oct 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 4 additions & 7 deletions ogre/src/OgreRenderEngine.cc
Expand Up @@ -421,20 +421,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