CMake: prevent mismatched package name warnings
Use all caps for the packages. Closes https://github.com/wxWidgets/wxWidgets/pull/1886
This commit is contained in:
committed by
Vadim Zeitlin
parent
f72f2bec3a
commit
1ed8197dfa
@@ -317,7 +317,7 @@ if(UNIX)
|
||||
if(wxUSE_SECRETSTORE AND NOT APPLE)
|
||||
# The required APIs are always available under MSW and OS X but we must
|
||||
# have GNOME libsecret under Unix to be able to compile this class.
|
||||
find_package(Libsecret)
|
||||
find_package(LIBSECRET)
|
||||
if(NOT LIBSECRET_FOUND)
|
||||
message(WARNING "libsecret not found, wxSecretStore won't be available")
|
||||
wx_option_force_value(wxUSE_SECRETSTORE OFF)
|
||||
@@ -325,7 +325,7 @@ if(UNIX)
|
||||
endif()
|
||||
|
||||
if(wxUSE_LIBICONV)
|
||||
find_package(Iconv)
|
||||
find_package(ICONV)
|
||||
if(NOT ICONV_FOUND)
|
||||
message(WARNING "iconv not found")
|
||||
wx_option_force_value(wxUSE_LIBICONV OFF)
|
||||
@@ -395,13 +395,13 @@ if(wxUSE_GUI)
|
||||
if(wxUSE_WEBVIEW)
|
||||
if(WXGTK)
|
||||
if(wxUSE_WEBVIEW_WEBKIT)
|
||||
find_package(LibSoup)
|
||||
find_package(LIBSOUP)
|
||||
if(WXGTK2)
|
||||
find_package(Webkit 1.0)
|
||||
find_package(WEBKIT 1.0)
|
||||
elseif(WXGTK3)
|
||||
find_package(Webkit2)
|
||||
find_package(WEBKIT2)
|
||||
if(NOT WEBKIT2_FOUND)
|
||||
find_package(Webkit 3.0)
|
||||
find_package(WEBKIT 3.0)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
@@ -429,8 +429,8 @@ if(wxUSE_GUI)
|
||||
endif()
|
||||
|
||||
if(wxUSE_PRIVATE_FONTS AND WXGTK)
|
||||
find_package(Fontconfig)
|
||||
find_package(PangoFT2)
|
||||
find_package(FONTCONFIG)
|
||||
find_package(PANGOFT2)
|
||||
if(NOT FONTCONFIG_FOUND OR NOT PANGOFT2_FOUND)
|
||||
message(WARNING "Fontconfig or PangoFT2 not found, Private fonts won't be available")
|
||||
wx_option_force_value(wxUSE_PRIVATE_FONTS OFF)
|
||||
@@ -438,9 +438,9 @@ if(wxUSE_GUI)
|
||||
endif()
|
||||
|
||||
if(wxUSE_MEDIACTRL AND UNIX AND NOT APPLE AND NOT WIN32)
|
||||
find_package(GStreamer 1.0 COMPONENTS video)
|
||||
find_package(GSTREAMER 1.0 COMPONENTS video)
|
||||
if(NOT GSTREAMER_FOUND)
|
||||
find_package(GStreamer 0.10 COMPONENTS interfaces)
|
||||
find_package(GSTREAMER 0.10 COMPONENTS interfaces)
|
||||
endif()
|
||||
|
||||
set(wxUSE_GSTREAMER ${GSTREAMER_FOUND})
|
||||
@@ -472,7 +472,7 @@ if(wxUSE_GUI)
|
||||
endif()
|
||||
|
||||
if(wxUSE_NOTIFICATION_MESSAGE AND UNIX AND WXGTK2 AND wxUSE_LIBNOTIFY)
|
||||
find_package(LibNotify)
|
||||
find_package(LIBNOTIFY)
|
||||
if(NOT LIBNOTIFY_FOUND)
|
||||
message(WARNING "Libnotify not found, it won't be used for notifications")
|
||||
wx_option_force_value(wxUSE_LIBNOTIFY OFF)
|
||||
@@ -485,7 +485,7 @@ if(wxUSE_GUI)
|
||||
|
||||
if(wxUSE_UIACTIONSIMULATOR AND UNIX AND WXGTK)
|
||||
if(wxUSE_XTEST)
|
||||
find_package(XTest)
|
||||
find_package(XTEST)
|
||||
if(XTEST_FOUND)
|
||||
list(APPEND wxTOOLKIT_INCLUDE_DIRS ${XTEST_INCLUDE_DIRS})
|
||||
list(APPEND wxTOOLKIT_LIBRARIES ${XTEST_LIBRARIES})
|
||||
@@ -518,7 +518,7 @@ if(wxUSE_GUI)
|
||||
endif()
|
||||
|
||||
if(WXGTK2 AND wxUSE_MIMETYPE AND wxUSE_LIBGNOMEVFS)
|
||||
find_package(GnomeVFS2)
|
||||
find_package(GNOMEVFS2)
|
||||
if(GNOMEVFS2_FOUND)
|
||||
list(APPEND wxTOOLKIT_INCLUDE_DIRS ${GNOMEVFS2_INCLUDE_DIRS})
|
||||
list(APPEND wxTOOLKIT_LIBRARIES ${GNOMEVFS2_LIBRARIES})
|
||||
|
Reference in New Issue
Block a user