26
26
set(linker "CMAKE_LINKER-NOTFOUND")
28
28
get_filename_component(linker ${CMAKE_LINKER} NAME)
30
31
# Construct a regex to match linker lines. It must match both the
31
32
# whole line and just the command (argv[0]).
33
34
set(linker_exclude_regex "collect2 version ")
34
35
set(log "${log} link line regex: [${linker_regex}]\n")
35
36
string(REGEX REPLACE "\r?\n" ";" output_lines "${text}")