From 765b45224da74e3679e71d6f83c9f6393adac701 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 23 Mar 2009 16:15:55 +0000 Subject: [PATCH] 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. " --- src/osgDB/Registry.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index b41c618af7b..fc598560ba6 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -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"; @@ -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";