I did what the warning suggested and added the if statement above the line given. I then had to do it for CMakeModules/VpbMacroUtils.cmake. It now runs without giving me a warning.
However, I get the following when I try to make: [ 14%] Building CXX object src/vpb/CMakeFiles/vpb.dir/Commandline.o /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp: In member function ‘void vpb::Commandline::processImageOrHeightField(vpb::Source::Type, const std::string&)’: /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp:108: error: ‘class osgTerrain::Terrain’ has no member named ‘getNumColorLayers’ /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp:108: error: ‘class osgTerrain::Terrain’ has no member named ‘getColorLayer’ /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp:116: error: ‘class osgTerrain::Terrain’ has no member named ‘setColorLayer’ /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp:121: error: ‘class osgTerrain::Terrain’ has no member named ‘getElevationLayer’ /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp:129: error: ‘class osgTerrain::Terrain’ has no member named ‘setElevationLayer’ /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp: In member function ‘int vpb::Commandline::read(std::ostream&, osg::ArgumentParser&, osgTerrain::Terrain*)’: /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp:491: error: ‘class osgTerrain::Terrain’ has no member named ‘getTerrainTechnique’ /home/mwhall/Download/VirtualPlanetBuilder/src/vpb/Commandline.cpp:495: error: ‘class osgTerrain::Terrain’ has no member named ‘setTerrainTechnique’ make[2]: *** [src/vpb/CMakeFiles/vpb.dir/Commandline.o] Error 1 make[1]: *** [src/vpb/CMakeFiles/vpb.dir/all] Error 2 make: *** [all] Error 2 Any ideas? Michael On Fri, 2009-05-01 at 14:39 -0500, Michael W. Hall wrote: > I get the following warning during the generate of ccmake for VPB: > > CMake Warning (dev) at src/vpb/CMakeLists.txt:38 (ADD_LIBRARY): > Policy CMP0003 should be set before this line. Add code such as > > if(COMMAND cmake_policy) > cmake_policy(SET CMP0003 NEW) > endif(COMMAND cmake_policy) > > as early as possible but after the most recent call to > cmake_minimum_required or cmake_policy(VERSION). This warning > appears > because target "vpb" links to some libraries for which the linker > must > search: > > -lpthread > > and other libraries with known full path: > > /usr/local/lib64/libosg.so > > CMake is adding directories in the second list to the linker search > path in > case they are needed to find libraries from the first list (for > backwards > compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to > enable..... > > Could someone tell me how to fix this? My OSG is build and working. I > am running 2.8.0 > > Thanks, > Michael > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

