[cmake-developers] [CMake 0015121]: OpenSceneGraph module broken

Mantis Bug Tracker mantis at public.kitware.com
Mon Sep 1 16:29:19 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15121 
====================================================================== 
Reported By:                Hartmut Seichter
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15121
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-09-01 16:29 EDT
Last Modified:              2014-09-01 16:29 EDT
====================================================================== 
Summary:                    OpenSceneGraph module broken
Description: 
On Arch Linux and Mac OS X 10.9.3 the find module for OpenSceneGraph stopped
working. Seems the combination cmake 3.0.x and OSG 3.2.1 is having issues. Also
setting OSG_DIR and CMAKE_PREFIX_PATH seem to have no effect. This is quite an
issue as most OSG dependent project will use cmake as build system.

An OSX example with debug on ...

cmake -DOpenSceneGraph_DEBUG=ON -DCMAKE_PREFIX_PATH=/opt/local
-DOSG_DIR=/opt/local ../VisionSpace
-- [ FindOpenSceneGraph.cmake:128 ] Components = osg;OpenThreads
-- [ FindOpenSceneGraph.cmake:200 ] Calling find_package(osg  )
-- Could NOT find osg (missing:  OSG_LIBRARY OSG_INCLUDE_DIR) 
-- [ FindOpenSceneGraph.cmake:200 ] Calling find_package(OpenThreads  )
-- Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY
OPENTHREADS_INCLUDE_DIR) 
CMake Error at
/opt/local/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136
(message):
  Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
  OPENSCENEGRAPH_INCLUDE_DIR OSG_FOUND OPENTHREADS_FOUND)
Call Stack (most recent call first):
  /opt/local/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343
(_FPHSA_FAILURE_MESSAGE)
  /opt/local/share/cmake-3.0/Modules/FindOpenSceneGraph.cmake:230
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:11 (find_package)


Steps to Reproduce: 
Arch Linux (x86_64, cmake-3.0.1-1, openscenegraph-3.2.1-1)
Mavericks (MacPorts, CMake @3.0.0_3, OpenSceneGraph @3.2.1)

Clear cache (it kept working on an install where the cache was moved over from
an older CMake build). 

Minimal project
(https://github.com/seichter/sandbox/tree/master/bugreports/cmake-osg) with
find_package(OpenSceneGraph REQUIRED)



====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-09-01 16:29 Hartmut SeichterNew Issue                                    
======================================================================



More information about the cmake-developers mailing list