We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab7da8 commit 81b19dfCopy full SHA for 81b19df
cmake/GetCompileFlags.cmake
@@ -3,6 +3,13 @@ function(get_compile_flags _compile_flags)
3
set(compile_flags "<CMAKE_C_COMPILER> <CFLAGS> <BUILD_TYPE_CFLAGS> <COMPILE_OPTIONS><COMPILE_DEFINITIONS> <INCLUDES>")
4
5
# Get C compiler.
6
+ if(CMAKE_C_COMPILER_ARG1)
7
+ string(REPLACE
8
+ "<CMAKE_C_COMPILER>"
9
+ "<CMAKE_C_COMPILER> ${CMAKE_C_COMPILER_ARG1}"
10
+ compile_flags
11
+ "${compile_flags}")
12
+ endif()
13
string(REPLACE
14
"<CMAKE_C_COMPILER>"
15
"${CMAKE_C_COMPILER}"
0 commit comments