[iPhone] Maybe an error in CMakeList for GLES2

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
sfabien
Gnoblar
Posts: 8
Joined: Wed Nov 18, 2009 4:46 pm

[iPhone] Maybe an error in CMakeList for GLES2

Post by sfabien »

In RenderSystems/GLES2/CmakeLists.txt :

if (OGRE_INSTALL_PLUGINS_HEADERS)
install(FILES ${HEADER_FILES} DESTINATION include/OGRE/RenderSystems/GLES2)
install(FILES ${PLATFORM_HEADERS} DESTINATION include/OGRE/RenderSystems/GLES2/${PLATFORM_HEADER_INSTALL})
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/GLSLES/include/ DESTINATION include/OGRE/RenderSystems/GLES2/${PLATFORM_HEADER_INSTALL})
endif ()

OGRE_INSTALL_PLUGINS_HEADERS is not defined anywhere else in the ogre source files. It seems, from the forum, that it was used previously to install RenderSystems or not, but it is not now (Last mercurial source) in GLES(1) CmakeLists.txt. Because of this flag, GLES2 headers are not available after building Ogre for iPhone (so GLES2 can't be used in apps).

Sincerely,

Fabien Servant
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: [iPhone] Maybe an error in CMakeList for GLES2

Post by masterfalcon »

Good find. I have this fixed locally and will push it sometime.