cmake: glib changed name to glib2
Change-Id: I4a86bd3b01e1fe307e9802182df943245a7fce4c Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
parent
e616976fdf
commit
773999816e
@ -528,7 +528,7 @@ extend_target(Core CONDITION UNIX AND QT_FEATURE_clock_gettime
|
||||
extend_target(Core CONDITION QT_FEATURE_glib
|
||||
SOURCES
|
||||
kernel/qeventdispatcher_glib.cpp kernel/qeventdispatcher_glib_p.h
|
||||
LIBRARIES PkgConfig::GLib
|
||||
LIBRARIES GLIB2::GLIB2
|
||||
)
|
||||
|
||||
## poll_select:
|
||||
|
@ -10,8 +10,8 @@ set_property(CACHE INPUT_iconv PROPERTY STRINGS undefined no yes posix sun gnu)
|
||||
|
||||
#### Libraries
|
||||
|
||||
find_package(GLib)
|
||||
set_package_properties(GLib PROPERTIES TYPE OPTIONAL)
|
||||
find_package(GLIB2)
|
||||
set_package_properties(GLIB2 PROPERTIES TYPE OPTIONAL)
|
||||
find_package(ICU COMPONENTS i18n uc data)
|
||||
set_package_properties(ICU PROPERTIES TYPE OPTIONAL)
|
||||
find_package(Libsystemd)
|
||||
@ -383,7 +383,7 @@ qt_feature("getentropy" PRIVATE
|
||||
qt_feature("glib" PUBLIC PRIVATE
|
||||
LABEL "GLib"
|
||||
AUTODETECT NOT WIN32
|
||||
CONDITION GLib_FOUND
|
||||
CONDITION GLIB2_FOUND
|
||||
)
|
||||
qt_feature_definition("glib" "QT_NO_GLIB" NEGATE VALUE "1")
|
||||
qt_feature("iconv" PUBLIC PRIVATE
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Generated from eventdispatchers.pro.
|
||||
|
||||
find_package(GLib)
|
||||
find_package(GLIB2)
|
||||
set_package_properties(GLib PROPERTIES TYPE OPTIONAL)
|
||||
|
||||
#####################################################################
|
||||
@ -35,5 +35,5 @@ extend_target(EventDispatcherSupport CONDITION QT_FEATURE_glib
|
||||
SOURCES
|
||||
qeventdispatcher_glib.cpp qeventdispatcher_glib_p.h
|
||||
LIBRARIES
|
||||
PkgConfig::GLib
|
||||
GLIB2::GLIB2
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user