fixes to CMakeLists to compile on OS X
This commit is contained in:
parent
841246e72b
commit
7340710df0
1 changed files with 5 additions and 0 deletions
|
@ -811,6 +811,7 @@ endif()
|
|||
|
||||
if(APPLE)
|
||||
add_definitions(-DUSE_MAC)
|
||||
set(SDL_LIBRARY ${SDL_LIBRARY} SDLmain)
|
||||
endif()
|
||||
|
||||
if(BSD)
|
||||
|
@ -1070,6 +1071,10 @@ if(WIN32 AND MINGW AND ENABLE_STATIC)
|
|||
set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--stack,10485760")
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -framework libpng -lSDLmain")
|
||||
endif()
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(metaserver_SRCS
|
||||
|
|
Loading…
Reference in a new issue