FindOGRE.cmake can't find an in-source build

Description

FindOGRE.cmake is unable to find Ogre in an in-source build. The following CMake code works in 1.8 (with this patch that is fixed in 1.9: https://bitbucket.org/sinbad/ogre/pull-request/281/remove-broken-build-code-for-osx/diff)

set(OGRE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/dep/ogre-1-9)
set(OGRE_BUILD ${CMAKE_CURRENT_SOURCE_DIR}/../../ogre-1.9-build )

set( CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${OGRE_ROOT}/CMake/Packages
${OGRE_ROOT}/CMake/Utils
)

set( OGRE_SOURCE ${OGRE_ROOT} )
find_package( OGRE REQUIRED )

Output:

Looking for OGRE...
OGRE_PREFIX_WATCH changed.
checking for module 'OGRE'
package 'OGRE' not found
Found Ogre Ghadamon (1.9.0)
CMake Error at dep/ogre-1-9/CMake/Packages/FindOGRE.cmake:233 (message):
When using Ogre from sources, please specify target names in
OGRE_LIBRARIES!

Environment

OSX 10.8

Assignee

Unassigned

Reporter

Glenn Ramsey

Labels

Components

Affects versions

Priority

Major
Configure