summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtFeature.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/QtFeature.cmake b/cmake/QtFeature.cmake
index 576dc27b85..7fae161798 100644
--- a/cmake/QtFeature.cmake
+++ b/cmake/QtFeature.cmake
@@ -492,9 +492,14 @@ function(qt_evaluate_feature_definition key)
set(expected OFF)
endif()
+ set(actual OFF)
+ if(QT_FEATURE_${arg_FEATURE})
+ set(actual ON)
+ endif()
+
set(msg "")
- if(QT_FEATURE_${arg_FEATURE} STREQUAL expected)
+ if(actual STREQUAL expected)
set(indent "")
if(arg_PREREQUISITE)
string(APPEND msg "#if ${arg_PREREQUISITE}\n")