diff options
author | Brad King <brad.king@kitware.com> | 2013-05-17 12:42:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-05-17 12:47:35 (GMT) |
commit | ffda082e652e1fd8a40dbc3c4d7ba11f18c06aac (patch) | |
tree | 17c8144bd201a515908e19976499f299d5a06092 /Tests | |
parent | edeabd18e6db5a52b2191ea9d3b09ee8bd090af6 (diff) | |
download | CMake-ffda082e652e1fd8a40dbc3c4d7ba11f18c06aac.zip CMake-ffda082e652e1fd8a40dbc3c4d7ba11f18c06aac.tar.gz CMake-ffda082e652e1fd8a40dbc3c4d7ba11f18c06aac.tar.bz2 |
Sanitize linker name to parse implicit link line (#14154)
Teach CMakeParseImplicitLinkInfo to convert the CMAKE_LINKER file name
to a regular expression that matches only the original name. Escape
special characters like '+' so they are not treated as regex syntax.
Extend the ImplicitLinkInfoTest to test handling of a CMAKE_LINKER value
with many special characters.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in b/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in index e28d102..055b183 100644 --- a/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in +++ b/Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in @@ -508,6 +508,7 @@ list(APPEND platforms msys_g77) #----------------------------------------------------------------------------- # Test parsing for all above examples. +set(CMAKE_LINKER "not-a-linker[]().*+^$?") foreach(p IN LISTS platforms) cmake_parse_implicit_link_info("${${p}_text}" libs dirs fwks log "${${p}_obj_regex}") |