Changeset 2624 for code/branches/buildsystem2/cmake/CheckOGREPlugins.cmake
- Timestamp:
- Jan 30, 2009, 12:48:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/CheckOGREPlugins.cmake
r2618 r2624 46 46 IF(NOT OGRE_PLUGIN_${_plugin}_OPTIMIZED) 47 47 MESSAGE(FATAL_ERROR "Could not find OGRE plugin named ${_plugin}") 48 ENDIF( NOT OGRE_PLUGIN_${_plugin}_OPTIMIZED)48 ENDIF() 49 49 ELSEIF(OGRE_PLUGIN_${_plugin}_OPTIMIZED) 50 50 SET(OGRE_RENDER_SYSTEM_FOUND TRUE) 51 ENDIF( NOT ${_plugin} MATCHES "RenderSystem")51 ENDIF() 52 52 53 53 IF(OGRE_PLUGIN_${_plugin}_OPTIMIZED) … … 55 55 IF(NOT OGRE_PLUGIN_${_plugin}_DEBUG) 56 56 SET(OGRE_PLUGIN_${_plugin}_DEBUG ${OGRE_PLUGIN_${_plugin}_OPTIMIZED} CACHE STRING "" FORCE) 57 ENDIF( NOT OGRE_PLUGIN_${_plugin}_DEBUG)57 ENDIF() 58 58 MARK_AS_ADVANCED(OGRE_PLUGIN_${_plugin}_OPTIMIZED OGRE_PLUGIN_${_plugin}_DEBUG) 59 59 … … 63 63 IF(OGRE_PLUGINS_FOLDER_RELEASE AND NOT OGRE_PLUGINS_FOLDER_RELEASE STREQUAL _release_folder) 64 64 MESSAGE(FATAL_ERROR "Ogre release plugins have to be in the same folder!") 65 ENDIF( OGRE_PLUGINS_FOLDER_RELEASE AND NOT OGRE_PLUGINS_FOLDER_RELEASE STREQUAL _release_folder)65 ENDIF() 66 66 SET(OGRE_PLUGINS_FOLDER_RELEASE ${_release_folder}) 67 67 GET_FILENAME_COMPONENT(_debug_folder ${OGRE_PLUGIN_${_plugin}_DEBUG} PATH) 68 68 IF(OGRE_PLUGINS_FOLDER_DEBUG AND NOT OGRE_PLUGINS_FOLDER_DEBUG STREQUAL _debug_folder) 69 69 MESSAGE(FATAL_ERROR "Ogre debug plugins have to be in the same folder!") 70 ENDIF( OGRE_PLUGINS_FOLDER_DEBUG AND NOT OGRE_PLUGINS_FOLDER_DEBUG STREQUAL _debug_folder)70 ENDIF() 71 71 SET(OGRE_PLUGINS_FOLDER_DEBUG ${_debug_folder}) 72 72 … … 77 77 IF(OGRE_PLUGIN_${_plugin}_DEBUG MATCHES "_d\\.|_d$") 78 78 LIST(APPEND OGRE_PLUGINS_DEBUG "${_plugin}_d") 79 ELSE( OGRE_PLUGIN_${_plugin}_DEBUG MATCHES "_d\\.|_d$")79 ELSE() 80 80 LIST(APPEND OGRE_PLUGINS_DEBUG "${_plugin}d") 81 ENDIF( OGRE_PLUGIN_${_plugin}_DEBUG MATCHES "_d\\.|_d$")82 ELSE( OGRE_PLUGIN_${_plugin}_DEBUG)81 ENDIF() 82 ELSE() 83 83 LIST(APPEND OGRE_PLUGINS_DEBUG ${_plugin}) 84 ENDIF( OGRE_PLUGIN_${_plugin}_DEBUG)84 ENDIF() 85 85 ENDIF(OGRE_PLUGIN_${_plugin}_OPTIMIZED) 86 86 ENDFOREACH(_plugin) 87 87 IF(NOT OGRE_RENDER_SYSTEM_FOUND) 88 88 MESSAGE(FATAL_ERROR "Could not find an OGRE render system plugin") 89 ENDIF( NOT OGRE_RENDER_SYSTEM_FOUND)89 ENDIF() 90 90 91 91 # List has to be comma separated for orxonox.ini
Note: See TracChangeset
for help on using the changeset viewer.