diff --git a/examples/osgintrospection/CMakeLists.txt b/examples/osgintrospection/CMakeLists.txt index e85ead821..1cd079104 100644 --- a/examples/osgintrospection/CMakeLists.txt +++ b/examples/osgintrospection/CMakeLists.txt @@ -1,5 +1,7 @@ SET(TARGET_SRC osgintrospection.cpp ) SET(TARGET_ADDED_LIBRARIES osgIntrospection ) +ADD_DEFINITIONS(-DOSG_PLUGIN_EXTENSION=${CMAKE_SHARED_MODULE_SUFFIX}) + #### end var setup ### SETUP_EXAMPLE(osgintrospection) diff --git a/examples/osgintrospection/osgintrospection.cpp b/examples/osgintrospection/osgintrospection.cpp index 644cccb2e..e4cd00b6d 100644 --- a/examples/osgintrospection/osgintrospection.cpp +++ b/examples/osgintrospection/osgintrospection.cpp @@ -25,13 +25,13 @@ #include #include +#include #include #include using namespace osgIntrospection; - // borrowed from osgDB... std::string createLibraryNameForWrapper(const std::string& ext) { @@ -49,9 +49,9 @@ std::string createLibraryNameForWrapper(const std::string& ext) #endif #endif #elif macintosh - return "osgwrapper_"+ext; + return "osgwrapper_" + ext; #else - return "osgwrapper_"+ext+ ADDQUOTES(OSG_PLUGIN_EXTENSION); + return "osgwrapper_" + ext + ADDQUOTES(OSG_PLUGIN_EXTENSION); #endif }