summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/data/cmake
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2019-07-11 14:08:59 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-07-11 14:13:19 +0000
commit3f8e754f07db944dc74d84cc1c24d3e11677ad09 (patch)
tree9fcf3bedb37afe7329196ab296d3b36f4129b559 /mkspecs/features/data/cmake
parent3bee5a470a20fcfb46528b020d18f2210519bd41 (diff)
CMake: Properly escape '.lib' in regex
In a CMake regex, you need two backslashes to escape a character. The .in file therefore needs four backslashes ... This amends ba4fdd99fff80 Fixes: QTBUG-76698 Change-Id: Ic757354ba596bf020c3ee5e90ee6d2d0fe3ba352 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'mkspecs/features/data/cmake')
-rw-r--r--mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
index 8a3f202c53..d4fd057682 100644
--- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
+++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
@@ -75,7 +75,7 @@ function(_qt5_$${CMAKE_MODULE_NAME}_process_prl_file prl_file_location Configura
# Handle normal libraries passed as -lfoo
set(_lib \"${CMAKE_MATCH_1}\")
foreach(_standard_library ${_standard_libraries})
- if(_standard_library MATCHES \"^${_lib}(\\.lib)?$\")
+ if(_standard_library MATCHES \"^${_lib}(\\\\.lib)?$\")
set(_lib_is_default_linked TRUE)
break()
endif()