Skip to content

Commit

Permalink
CMake: Properly escape '.lib' in regex
Browse files Browse the repository at this point in the history
In a CMake regex, you need two backslashes to escape a character. The
.in file therefore needs four backslashes ...

This amends ba4fdd9

Fixes:  QTBUG-76698
Change-Id: Ic757354ba596bf020c3ee5e90ee6d2d0fe3ba352
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
kkoehne authored and alcroito committed Jul 11, 2019
1 parent 3bee5a4 commit 3f8e754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3f8e754

Please sign in to comment.