From Mourad Boufarguine, "With the present CMakeLists, the directory ${PROJECT_BINARY_DIR}/include is added to the include path before ${OpenSceneGraph_SOURCE_DIR}/include. This causes problems whenever a header file is changed when updating OSG, because cpp files are build against the old header files contained in ${PROJECT_BINARY_DIR}/include rather than the new ones in ${OpenSceneGraph_SOURCE_DIR}/include. Inverting the order of the two drectories in the include path solves the problem.
From Mourad Boufarguine, "With the present CMakeLists, the directory ${PROJECT_BINARY_DIR}/include is added to the include path before ${OpenSceneGraph_SOURCE_DIR}/include. This causes problems whenever a header file is changed when updating OSG, because cpp files are build against the old header files contained in ${PROJECT_BINARY_DIR}/include rather than the new ones in ${OpenSceneGraph_SOURCE_DIR}/include. Inverting the order of the two drectories in the include path solves the problem.

Attached is the modified CMakeLists.txt."


openscenegraph/osg,jtorresfabra/osg,jtorresfabra/osg,tomasthoresen/osg,tomasthoresen/osg,marchelbling/osg,scrawl/osg,jtorresfabra/osg,artoolkit/osg,openscenegraph/osg,jtorresfabra/osg,marchelbling/osg,openscenegraph/osg,artoolkit/osg,tomasthoresen/osg,artoolkit/osg,tomasthoresen/osg,marchelbling/osg,artoolkit/osg,marchelbling/osg,scrawl/osg,scrawl/osg,openscenegraph/osg,scrawl/osg