CMake: Remove gtk dep on macOS

We only need gio now
This commit is contained in:
TellowKrinkle authored and tellowkrinkle committed 2021-11-17 14:23:15 -06:00
1 parent 0d40661b33
commit 2245315b60
2 files changed
+9 -1

No files matched your search

+3 -1
View File
@@ -163,7 +163,9 @@ else()
find_package(X11 REQUIRED)
make_imported_target_if_missing(X11::X11 X11)
endif()
if(UNIX)
if(APPLE)
check_lib(GIO gio-2.0 gio/gio.h)
elseif(UNIX)
# Most plugins (if not all) and PCSX2 core need gtk2, so set the required flags
if (GTK2_API)
find_package(GTK2 REQUIRED gtk)
+6
View File
@@ -1468,6 +1468,12 @@ if(WIN32)
opengl32.lib
comsuppw.lib
)
elseif(APPLE)
target_link_libraries(PCSX2_FLAGS INTERFACE
PkgConfig::GIO
PCAP::PCAP
LibXml2::LibXml2
)
else()
target_link_libraries(PCSX2_FLAGS INTERFACE
GTK::gtk