@ -304,10 +304,12 @@ ENDIF()
SET_TARGET_PROPERTIES ( dfhack PROPERTIES DEBUG_POSTFIX "-debug" )
SET_TARGET_PROPERTIES ( dfhack PROPERTIES DEBUG_POSTFIX "-debug" )
IF ( APPLE )
IF ( APPLE )
SET ( SDL_LIBRARY ${ CMAKE_INSTALL_PREFIX } /libs/SDL.framework )
SET ( DF_ SDL_LIBRARY ${ CMAKE_INSTALL_PREFIX } /libs/SDL.framework /Versions/A/SDL )
IF ( NOT EXISTS ${ SDL_LIBRARY} )
IF ( NOT EXISTS ${ DF_ SDL_LIBRARY} )
MESSAGE ( SEND_ERROR "SDL framework not found. Make sure CMAKE_INSTALL_PREFIX is specified and correct." )
MESSAGE ( SEND_ERROR "SDL framework not found. Make sure CMAKE_INSTALL_PREFIX is specified and correct." )
ENDIF ( )
ENDIF ( )
SET ( SDL_LIBRARY ${ CMAKE_BINARY_DIR } /SDL )
EXECUTE_PROCESS ( COMMAND ${ CMAKE_COMMAND } -E copy_if_different ${ DF_SDL_LIBRARY } ${ SDL_LIBRARY } )
SET ( CXX_LIBRARY ${ CMAKE_INSTALL_PREFIX } /libs/libstdc++.6.dylib )
SET ( CXX_LIBRARY ${ CMAKE_INSTALL_PREFIX } /libs/libstdc++.6.dylib )
SET ( ZIP_LIBRARY /usr/lib/libz.dylib )
SET ( ZIP_LIBRARY /usr/lib/libz.dylib )
TARGET_LINK_LIBRARIES ( dfhack ${ SDL_LIBRARY } )
TARGET_LINK_LIBRARIES ( dfhack ${ SDL_LIBRARY } )