Only use CMAKE_C_COMPILER_ARG1 if it is set
Merge #1229 'Only use CMAKE_C_COMPILER_ARG1 if it is set'