You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
738 B

  1. --- a/scripts/genout.cmake.in
  2. +++ b/scripts/genout.cmake.in
  3. @@ -14,6 +14,7 @@ set(BINDIR "@CMAKE_CURRENT_BINARY_DIR@")
  4. set(AWK "@AWK@")
  5. set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@")
  6. +set(CMAKE_C_COMPILER_ARG1 "@CMAKE_C_COMPILER_ARG1@")
  7. set(CMAKE_C_FLAGS @CMAKE_C_FLAGS@)
  8. set(INCDIR "@CMAKE_CURRENT_BINARY_DIR@")
  9. set(PNG_PREFIX "@PNG_PREFIX@")
  10. @@ -58,7 +59,7 @@ if ("${INPUTEXT}" STREQUAL ".c" AND "${O
  11. set(PNG_PREFIX_DEF "-DPNG_PREFIX=${PNG_PREFIX}")
  12. endif()
  13. - execute_process(COMMAND "${CMAKE_C_COMPILER}" "-E"
  14. + execute_process(COMMAND "${CMAKE_C_COMPILER}" ${CMAKE_C_COMPILER_ARG1} "-E"
  15. ${CMAKE_C_FLAGS}
  16. ${PLATFORM_C_FLAGS}
  17. "-I${SRCDIR}"