OS X: CMake install does not install framework, FindOGRE fails

Description

Original reporter: cadabra

On OS X, in addition to the library, Ogre's CMakeLists.txt builds a Mac OS X framework bundle. This builds correctly in the build root, but is never installed with `make install` into the install root. If a client project looks for OGRE using FindOGRE.cmake and OGRE_HOME is set to the install root, it fails to find OGRE on Mac OS X because it's looking for the framework. Below is the line in FindOGRE.cmake that breaks and a patch that I'm using as a workaround, because I don't need the framework. I think the real fix would be to make sure the framework is installed into the install root.

@@ -70,7 +70,7 @@

if(APPLE)

  • set(OGRE_LIBRARY_NAMES "Ogre${OGRE_LIB_SUFFIX}")
    + set(OGRE_LIBRARY_NAMES "Ogre${OGRE_LIB_SUFFIX}" "OgreMain${OGRE_LIB_SUFFIX}")
    else()
    set(OGRE_LIBRARY_NAMES "OgreMain${OGRE_LIB_SUFFIX}")
    endif()

Original Mantis Ticket: http://www.ogre3d.org/mantis/view.php?id=534

Environment

None

Assignee

M

Reporter

Philip Allgaier

Labels

None

Components

Fix versions

Affects versions

Priority

Blocker
Configure