Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
From Eric Sokolowsky, "The attached Registry.cpp fixes OSG under OSX …
…when a library suffix string is used, as is selected by default with cmake.

"
  • Loading branch information
robertosfield committed Mar 23, 2009
1 parent f34116f commit 765b452
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/osgDB/Registry.cpp
Expand Up @@ -683,7 +683,11 @@ std::string Registry::createLibraryNameForExtension(const std::string& ext)
return prepend+"osgdb_"+lowercase_ext+".dll";
#endif
#elif macintosh
return prepend+"osgdb_"+lowercase_ext;
#ifdef _DEBUG
return prepend+"osgdb_"+lowercase_ext+ OSG_DEBUG_POSTFIX_WITH_QUOTES;
#else
return prepend+"osgdb_"+lowercase_ext;
#endif
#elif defined(__hpux__)
// why don't we use PLUGIN_EXT from the makefiles here?
return prepend+"osgdb_"+lowercase_ext+".sl";
Expand All @@ -710,7 +714,11 @@ std::string Registry::createLibraryNameForNodeKit(const std::string& name)
return name+".dll";
#endif
#elif macintosh
return name;
#ifdef _DEBUG
return name+OSGDEBUG_POSTFIX_WITH_QUOTES;
#else
return name;
#endif
#elif defined(__hpux__)
// why don't we use PLUGIN_EXT from the makefiles here?
return "lib"+name+".sl";
Expand Down

0 comments on commit 765b452

Please sign in to comment.