CMake: Fix -pch configure option

This amends dbd3c75965.

Change-Id: Ia87d60f1da65624bc5c6ffb915eecf99a2d8bdc0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Joerg Bornemann 2020-07-07 07:23:37 +02:00
parent 544b08f664
commit 22b663f55d
1 changed files with 1 additions and 1 deletions

View File

@ -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-(.*)")