From f38d1cdbb44e147db172d4b1b886d8a1f3573f1b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 19 Nov 2009 10:47:42 +0000 Subject: [PATCH] Fixed build --- examples/osgintrospection/CMakeLists.txt | 2 ++ examples/osgintrospection/osgintrospection.cpp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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 }