Permalink
Browse files

Making exclusive calls for Mac libraries to be linked.

  • Loading branch information...
LeonBlade committed May 5, 2012
1 parent fc0463d commit 544627cca180aeb2db1a8346e60d5428d4f681ad
Showing with 8 additions and 6 deletions.
  1. +8 −6 third-party/libtcod/CMakeLists.txt
@@ -30,14 +30,16 @@ else(MSVC OR TOOLCHAIN_ON_CYGWIN)
dt_project(library)
dt_needs_prebuilt(zlib)
dt_needs_prebuilt(libpng)
- dt_needs_prebuilt(sdl)
- dt_needs_prebuilt(opengl)
+ if(APPLE)
+ dt_needs_osx_dependency(SDL)
+ dt_needs_osx_dependency(SDLmain)
+ dt_needs_osx_dependency(OpenGL)
+ else()
+ dt_needs_prebuilt(sdl)
+ dt_needs_prebuilt(opengl)
+ endif()
dt_folder("third-party")
- # OS X
- dt_needs_osx_dependency(SDL)
- dt_needs_osx_dependency(SDLmain)
-
# We also need to change our C compiler flags, since TCOD doesn't
# conform to our compiling standards :P
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error -Wno-declaration-after-statement")

0 comments on commit 544627c

Please sign in to comment.