I compared examples/osgviewerSDL (which does compile) with
applications/present3D
osgviewerSDL/CMakeFiles/CMakeDirectoryInformation.cmake does contain
/usr/include/SDL in its "CMAKE_C_INCLUDE_PATH"
but
present3D/CMakeFiles/CMakeDirectoryInformation.cmake does NOT contain
/usr/include/SDL in its "CMAKE_C_INCLUDE_PATH"
The difference seems to be that osgViewerDSL has a simple and clean
CMakeLists.txt which just says
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
whereas present3D's CMakeLists.txt has the rather more complicated (and broken):
IF (SDL_FOUND)
OPTION(BUILD_WITH_SDL "Set to ON to build with SDL for joystick support."
OFF)
IF (BUILD_WITH_SDL)
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} ${SDL_LIBRARY})
SET(EXTERNAL_INCLUDE_DIRS ${EXTERNAL_INCLUDE_DIRS} ${SDL_INCLUDE_DIR})
Looks like a bad case of non-orthogonality
what is good for osgviewerSDL should be OK for present3D
I will copy and paste the working CMakeLists.txt into the broken one and see
what happens
Regards,
Francois Genolini
Aberdeen, Pictland
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=11649#11649
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org