cmake: correctly link against CoreServices

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-04-03 12:34:23 -07:00
parent 6a466d0cfb
commit 3dac769c33

View file

@ -157,7 +157,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
ENDIF() ENDIF()
IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin") IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
SET(PLATFORM_SRC macos.c) SET(PLATFORM_SRC macos.c)
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -framework CoreServices) FIND_LIBRARY(APP_SERVICES_LIBRARY ApplicationServices )
SET(EXTRA_LIBS ${APP_SERVICES_LIBRARY})
if(NOT DEFINED LRELEASE) if(NOT DEFINED LRELEASE)
set(LRELEASE lrelease) set(LRELEASE lrelease)
endif() endif()