From ea7fff80f4190f8bb1bf7d64762029f92ebb7dc0 Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Sun, 9 Aug 2020 18:18:28 +0200 Subject: [PATCH] CMake: Don't strip linker flags --- cmake/CompileCheck.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CompileCheck.cmake b/cmake/CompileCheck.cmake index 4c02e66..bea01e0 100644 --- a/cmake/CompileCheck.cmake +++ b/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)