diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 1bafdba3d56..2f3f019d560 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -322,8 +322,7 @@ IF (WIN32) ENDIF (WIN32) IF(APPLE) - FIND_LIBRARY(IOKIT_LIBRARY IOKit) - TARGET_LINK_LIBRARIES(qgis_core ${IOKIT_LIBRARY}) + TARGET_LINK_LIBRARIES(qgis_core "-framework CoreFoundation -framework IOKit") ENDIF(APPLE) TARGET_LINK_LIBRARIES(qgis_core