Fixed: Misc depends on Carbon under OS X

--HG--
branch : develop
This commit is contained in:
kervala 2017-04-21 11:03:39 +02:00
parent 72b37450b4
commit 8dca705f73
2 changed files with 23 additions and 18 deletions

View file

@ -164,6 +164,10 @@ IF(WITH_SSE2)
ENDIF()
ENDIF()
IF(APPLE)
FIND_LIBRARY(CARBON_FRAMEWORK Carbon)
FIND_LIBRARY(FOUNDATION_FRAMEWORK Foundation)
IF(APPLE_CERTIFICATE)
# Find codesign_allocate
@ -185,6 +189,7 @@ IF(APPLE_CERTIFICATE)
SET(CODESIGN_ALLOCATE)
ENDIF()
ENDIF()
ENDIF()
MACRO(ADD_QT_LIBRARY _NAME)
IF(WIN32)
@ -378,8 +383,6 @@ IF(WITH_QT5)
IF(APPLE)
FIND_LIBRARY(PCRE_LIBRARY pcre16 pcre)
FIND_LIBRARY(FOUNDATION_FRAMEWORK Foundation)
FIND_LIBRARY(CARBON_FRAMEWORK Carbon)
FIND_LIBRARY(SECURITY_FRAMEWORK Security)
SET(QT_LIBRARIES ${QT_LIBRARIES}

View file

@ -202,7 +202,9 @@ ENDIF()
IF(UNIX)
TARGET_LINK_LIBRARIES(nelmisc -lc -ldl)
IF(NOT APPLE)
IF(APPLE)
TARGET_LINK_LIBRARIES(nelmisc ${CARBON_FRAMEWORK})
ELSE()
TARGET_LINK_LIBRARIES(nelmisc -lrt)
ENDIF()
ENDIF()