summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-01-29 12:53:24 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-01-31 13:56:55 +0000
commit1218d8a9f0bcacf4dee3795c3172c9ce05b8baa8 (patch)
treee346fc55eea9f4e2ac82864beea4104a858b633e /util
parent06e8dd31e90ad76bacde9e6ea0492df202c736ea (diff)
CMake: Use FindGLIB2 from cmake-extra-modules
Use FindGLIB2 from cmake-extra-modules over hand-rolled own version. Change-Id: I1f8e055bc12dd728c033fd88480690643d90159a Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/configurejson2cmake.py2
-rw-r--r--util/cmake/helper.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 0a30e74d6f..312f0cc54d 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -55,7 +55,7 @@ def map_library(lib: str) -> Union[str, LibraryMapping, List[str]]:
'fontconfig': LibraryMapping(package='Fontconfig', resultVariable="FONTCONFIG"),
'freetype': 'Freetype',
'gbm': 'gbm',
- 'glib': 'GLib',
+ 'glib': 'GLIB2',
'gnu_iconv': None,
'harfbuzz': 'harfbuzz',
'host_dbus': None,
diff --git a/util/cmake/helper.py b/util/cmake/helper.py
index 1998defeff..759f61a383 100644
--- a/util/cmake/helper.py
+++ b/util/cmake/helper.py
@@ -184,6 +184,7 @@ platform_mapping = {
'clang': 'CLANG',
'gcc': 'GCC',
'icc': 'ICC',
+ 'intel_icc': 'ICC',
'osx': 'APPLE_OSX',
'ios': 'APPLE_IOS',
'freebsd': 'FREEBSD',
@@ -205,7 +206,7 @@ def substitute_platform(platform: str) -> str:
libray_mapping = {
'zlib': 'ZLIB::ZLIB',
- 'glib': 'PkgConfig::GLib',
+ 'glib': 'GLIB2::GLIB2',
}