Fixed build

This commit is contained in:
Robert Osfield 2009-11-19 10:47:42 +00:00
parent b4dffc5bf4
commit f38d1cdbb4
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
SET(TARGET_SRC osgintrospection.cpp ) SET(TARGET_SRC osgintrospection.cpp )
SET(TARGET_ADDED_LIBRARIES osgIntrospection ) SET(TARGET_ADDED_LIBRARIES osgIntrospection )
ADD_DEFINITIONS(-DOSG_PLUGIN_EXTENSION=${CMAKE_SHARED_MODULE_SUFFIX})
#### end var setup ### #### end var setup ###
SETUP_EXAMPLE(osgintrospection) SETUP_EXAMPLE(osgintrospection)

View File

@ -25,13 +25,13 @@
#include <osgIntrospection/PropertyInfo> #include <osgIntrospection/PropertyInfo>
#include <osgDB/DynamicLibrary> #include <osgDB/DynamicLibrary>
#include <osg/Object>
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
using namespace osgIntrospection; using namespace osgIntrospection;
// borrowed from osgDB... // borrowed from osgDB...
std::string createLibraryNameForWrapper(const std::string& ext) std::string createLibraryNameForWrapper(const std::string& ext)
{ {
@ -49,9 +49,9 @@ std::string createLibraryNameForWrapper(const std::string& ext)
#endif #endif
#endif #endif
#elif macintosh #elif macintosh
return "osgwrapper_"+ext; return "osgwrapper_" + ext;
#else #else
return "osgwrapper_"+ext+ ADDQUOTES(OSG_PLUGIN_EXTENSION); return "osgwrapper_" + ext + ADDQUOTES(OSG_PLUGIN_EXTENSION);
#endif #endif
} }