summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-01-31 16:20:32 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-02-11 09:35:07 +0000
commit73f5036be58c52ab0c8a101e5e34ea6de12b9a29 (patch)
tree7803b954873090221203c51eec27f460877f6a56 /util
parent25457f29db8b0321202afba25c3168c5ac9f9bbb (diff)
CMake: Map dlopen feature to 'ON'
Map the dlopen feature to 'ON'. The effect is that cmake will figure out whether or not linking to 'dl' is necessary or not. The user-visible feature is 'library' anyway: That enables dynamic library loading -- and will link in 'dl' as needed. Change-Id: I0d68275a7234efba7f926150f120bb37b4a1163f Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/configurejson2cmake.py2
-rwxr-xr-xutil/cmake/pro2cmake.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 03625da1a5..770f7588a3 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -276,7 +276,7 @@ def map_condition(condition):
assert isinstance(condition, str)
mapped_features = {
- "dlopen": "UNIX",
+ "dlopen": "ON",
'gbm': 'gbm_FOUND',
"system-xcb": "ON",
"system-freetype": "ON",
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 6d63461e0d..4f4303e3d1 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -603,6 +603,8 @@ def map_condition(condition: str) -> str:
if feature.startswith('system_') and substitute_libs(feature[7:]) != feature[7:]:
# Qt6 always uses system libraries!
part = 'ON'
+ elif feature == 'dlopen':
+ part = 'ON'
else:
part = 'QT_FEATURE_' + feature
else: