Commit c4497a35 authored by Halla Rempt's avatar Halla Rempt
Browse files

Link widgetutils to the foundation libraries on OSX, not widgets

Patch by Beelzy, thanks!
parent 5dc7a1b1
......@@ -100,11 +100,6 @@ if(X11_FOUND)
target_link_libraries(kritawidgets Qt5::X11Extras ${X11_LIBRARIES})
endif()
if (APPLE)
find_library(FOUNDATION_LIBRARY Foundation)
target_link_libraries(kritawidgets ${FOUNDATION_LIBRARY})
endif ()
target_link_libraries(kritawidgets LINK_INTERFACE_LIBRARIES kritatext kritapigment kritawidgetutils)
set_target_properties(kritawidgets PROPERTIES
......
......@@ -84,6 +84,11 @@ if (HAVE_DBUS)
set (KRITA_WIDGET_UTILS_EXTRA_LIBS ${KRITA_WIDGET_UTILS_EXTRA_LIBS} Qt5::DBus)
endif ()
if (APPLE)
find_library(FOUNDATION_LIBRARY Foundation)
set(KRITA_WIDGET_UTILS_EXTRA_LIBS ${KRITA_WIDGET_UTILS_EXTRA_LIBS} ${FOUNDATION_LIBRARY})
endif ()
target_link_libraries(kritawidgetutils
PUBLIC
Qt5::Widgets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment