Browse Source

CMake: Don't strip linker flags

pull/120/head
Daniel Scharrer 6 years ago
parent
commit
ea7fff80f4
  1. 2
      cmake/CompileCheck.cmake

2
cmake/CompileCheck.cmake

@ -131,7 +131,7 @@ function(check_flag RESULT FLAG TYPE)
endfunction(check_flag)
macro(strip_warning_flags VAR)
string(REGEX REPLACE "(^| )\\-(W[^ ]*|pedantic)" "" ${VAR} "${${VAR}}")
string(REGEX REPLACE "(^| )\\-(W[^ l][^ ]*|Wl[^,][^ ]*|pedantic)" "" ${VAR} "${${VAR}}")
endmacro()
function(check_builtin RESULT EXPR)

Loading…
Cancel
Save