Skip to content

Commit

Permalink
preprocess _ignore_flags with vcpkg_escape_regex_control_characters (#…
Browse files Browse the repository at this point in the history
…14018)

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
  • Loading branch information
jgilje and JackBoosY committed Nov 13, 2020
1 parent 132ca47 commit 9ee0529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/cmake/vcpkg_fixup_pkgconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ function(vcpkg_fixup_pkgconfig_check_files pkg_cfg_cmd _file _config _system_lib
debug_message("BEFORE IGNORE FLAGS REMOVAL: ${_pkg_libs_output}")
foreach(_ignore IN LISTS _ignore_flags) # Remove ignore with whitespace
debug_message("REMOVING FLAG:'${_ignore}'")
vcpkg_escape_regex_control_characters(_ignore "${_ignore}")
string(REGEX REPLACE "(^[\t ]*|;[\t ]*|[\t ]+)${_ignore}([\t ]+|[\t ]*;|[\t ]*$)" "\\2" _pkg_libs_output "${_pkg_libs_output}")
debug_message("AFTER REMOVAL: ${_pkg_libs_output}")
endforeach()
Expand Down

0 comments on commit 9ee0529

Please sign in to comment.