--- cmake/HostCompile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/HostCompile.cmake b/cmake/HostCompile.cmake index 8fea28be..23a1b0c2 100644 --- a/cmake/HostCompile.cmake +++ b/cmake/HostCompile.cmake @@ -15,7 +15,7 @@ function(host_compile src dst_cmd) if(NOT MSVC) # assume cc foo.c -o foo # will work on most hosts - set(compile_command cc ${src} -o ${dst} ${link_flags}) + set(compile_command gcc ${src} -o ${dst} ${link_flags}) else() # special case for Visual Studio set(compile_command ${CMAKE_C_COMPILER} ${src} /link "/out:${dst}")