summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-07-07 07:23:37 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-07-08 07:09:18 +0200
commit22b663f55d3c8b281521e2309350c3c8e811384e (patch)
tree61ad8b60d3be903690687dbdd12b00bec82e030b
parent544b08f6642c60155b189af3e2a19f41754fc07f (diff)
CMake: Fix -pch configure option
This amends dbd3c759654. Change-Id: Ia87d60f1da65624bc5c6ffb915eecf99a2d8bdc0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--cmake/QtProcessConfigureArgs.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake
index 18845b9ccb..55c4fbfe05 100644
--- a/cmake/QtProcessConfigureArgs.cmake
+++ b/cmake/QtProcessConfigureArgs.cmake
@@ -68,7 +68,7 @@ while(configure_args)
calculate_state()
list(POP_FRONT configure_args feature)
push("-DFEATURE_${feature}=${state}")
- elseif(arg MATCHES "^-(no-)pch")
+ elseif(arg MATCHES "^-(no-)?pch")
calculate_state()
push("-DBUILD_WITH_PCH=${state}")
elseif(arg MATCHES "^-system-(.*)")