diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-11-16 07:52:02 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-01-10 19:41:13 +0100 |
commit | f2a89fbec8444681f5d36b2c0731ba0d74810135 (patch) | |
tree | a1e0495b3b6fcb396ae95add31c7792330b72690 /cmake/Modules | |
parent | d25c04808f50ecf8f374113c627204511801bcac (diff) | |
download | tigervnc-f2a89fbec8444681f5d36b2c0731ba0d74810135.tar.gz tigervnc-f2a89fbec8444681f5d36b2c0731ba0d74810135.zip |
Remove unnecessary regexp \\
This serves no useful purpose as we have no reason to suspect there will
be a dangerous first character in these variables.
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/CMakeMacroLibtoolFile.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake index 4a508925..9658bbac 100644 --- a/cmake/Modules/CMakeMacroLibtoolFile.cmake +++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake @@ -32,8 +32,8 @@ macro(libtool_create_control_file _target) foreach(library ${target_libs}) # Assume all entries are shared libs if platform-specific static library # extension is not matched. - if(NOT "${library}" MATCHES ".+\\${CMAKE_STATIC_LIBRARY_SUFFIX}$") - if("${library}" MATCHES ".+\\${CMAKE_SHARED_LIBRARY_SUFFIX}$") + if(NOT "${library}" MATCHES ".+${CMAKE_STATIC_LIBRARY_SUFFIX}$") + if("${library}" MATCHES ".+${CMAKE_SHARED_LIBRARY_SUFFIX}$") # Shared library extension matched, so extract the path and library # name, then add the result to the libtool dependency libs. This # will always be an absolute path, because that's what CMake uses @@ -59,7 +59,7 @@ macro(libtool_create_control_file _target) # library in a system directory. # Need to remove -l prefix - if (${library} MATCHES "^\\${CMAKE_LINK_LIBRARY_FLAG}") + if(${library} MATCHES "^${CMAKE_LINK_LIBRARY_FLAG}") string(REPLACE ${CMAKE_LINK_LIBRARY_FLAG} "" library ${library}) endif() |