Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making exclusive calls for Mac libraries to be linked.

  • Loading branch information...
commit 544627cca180aeb2db1a8346e60d5428d4f681ad 1 parent fc0463d
@LeonBlade authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 third-party/libtcod/CMakeLists.txt
View
14 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")
Please sign in to comment.
Something went wrong with that request. Please try again.