From 81b19df5f2f319a36c4230a5f4bcea30d6306f4a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 25 Sep 2019 00:09:23 +0200 Subject: cmake/GetCompileFlags: include CMAKE_C_COMPILER_ARG1 (#11091) This is used internally (e.g. on Travis) for 32-bit builds (`-m32`). --- cmake/GetCompileFlags.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/GetCompileFlags.cmake b/cmake/GetCompileFlags.cmake index 2238744a66..49b57f6f75 100644 --- a/cmake/GetCompileFlags.cmake +++ b/cmake/GetCompileFlags.cmake @@ -3,6 +3,13 @@ function(get_compile_flags _compile_flags) set(compile_flags " ") # Get C compiler. + if(CMAKE_C_COMPILER_ARG1) + string(REPLACE + "" + " ${CMAKE_C_COMPILER_ARG1}" + compile_flags + "${compile_flags}") + endif() string(REPLACE "" "${CMAKE_C_COMPILER}" -- cgit