summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-02-28 12:31:04 +0000
committerDavid Athay <ko2fan@gmail.com>2008-02-28 12:31:04 +0000
commitfb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f (patch)
tree65e3086f341bb92154e99806f3b6255d9696ed4b /CMake
parentac2de5e0bd7dfc79e344b6724ee6a13db9994aa4 (diff)
downloadmana-client-fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f.tar.gz
mana-client-fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f.tar.bz2
mana-client-fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f.tar.xz
mana-client-fb3cbeddd6f5d59e3f83da059b2a1d4bed2cb80f.zip
Work in Progress commit of guilds.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/Modules/FindGuichan.cmake21
1 files changed, 15 insertions, 6 deletions
diff --git a/CMake/Modules/FindGuichan.cmake b/CMake/Modules/FindGuichan.cmake
index fccfc499..b0cb9038 100644
--- a/CMake/Modules/FindGuichan.cmake
+++ b/CMake/Modules/FindGuichan.cmake
@@ -17,7 +17,6 @@ IF (Guichan_INCLUDE_DIR AND Guichan_LIBRARY)
SET(Guichan_QUIET TRUE)
ENDIF (Guichan_INCLUDE_DIR AND Guichan_LIBRARY)
-
FIND_PATH(Guichan_INCLUDE_DIR
NAMES guichan.hpp
PATHS /usr/include /usr/local/include
@@ -53,15 +52,25 @@ FOREACH (COMPONENT ${Guichan_FIND_COMPONENTS})
IF (COMPONENT STREQUAL "SDL")
SET(COMPONENT_FOUND TRUE)
- SET(Guichan_HEADER "guichan/sdl.hpp")
- SET(Guichan_LIBRARY "guichan_sdl")
+ IF (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+ SET(Guichan_HEADER "sdl.hpp")
+ SET(Guichan_LIBRARY_${COMPONENT} TRUE)
+ ELSE (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+ SET(Guichan_HEADER "guichan/sdl.hpp")
+ SET(Guichan_LIBRARY "guichan_sdl")
+ ENDIF (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
ENDIF (COMPONENT STREQUAL "SDL")
IF (COMPONENT STREQUAL "OpenGL")
SET(COMPONENT_FOUND TRUE)
- SET(Guichan_HEADER "guichan/opengl.hpp")
- SET(Guichan_LIBRARY "guichan_opengl")
- ENDIF (COMPONENT STREQUAL "OpenGL")
+ IF (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+ SET(Guichan_HEADER "opengl.hpp")
+ SET(Guichan_LIBRARY_${COMPONENT} TRUE)
+ ELSE (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+ SET(Guichan_HEADER "guichan/opengl.hpp")
+ SET(Guichan_LIBRARY "guichan_opengl")
+ ENDIF (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+ ENDIF (COMPONENT STREQUAL "OpenGL")
IF (NOT COMPONENT_FOUND)
MESSAGE(FATAL_ERROR "Invalid Guichan component: ${COMPONENT}")