Mercurial > sumwars
changeset 2689:a5d16df6b8b6
refs #29: Throw cmake error when not at least CEGUI 0.8.0 was found
author | Stefan Stammberger <some.fusion@gmail.com> |
---|---|
date | Tue, 25 Mar 2014 19:50:14 +0100 |
parents | 4877ae046f62 |
children | bd1a2ea1c22f |
files | CMakeLists.txt |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Tue Mar 25 19:26:42 2014 +0100 +++ b/CMakeLists.txt Tue Mar 25 19:50:14 2014 +0100 @@ -181,11 +181,10 @@ FIND_PACKAGE(OIS REQUIRED) FIND_PACKAGE(Lua REQUIRED) FIND_PACKAGE(CEGUI REQUIRED) +SET(CEGUI_VERSION_RESOURCES "gui_0.8") IF(CEGUI_VERSION VERSION_LESS "0.8.0") - SET(CEGUI_VERSION_RESOURCES "gui") -ELSE() - SET(CEGUI_VERSION_RESOURCES "gui_0.8") + MESSAGE(FATAL_ERROR "This version of Sumwars requires at least CEGUI 0.8.0") ENDIF() FIND_PACKAGE(CEGUIOGRE REQUIRED)