diff options
-rw-r--r-- | cmake/modules/GObjectIntrospectionMacros.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/GObjectIntrospectionMacros.cmake b/cmake/modules/GObjectIntrospectionMacros.cmake index 98a38e43..33e2c0f9 100644 --- a/cmake/modules/GObjectIntrospectionMacros.cmake +++ b/cmake/modules/GObjectIntrospectionMacros.cmake @@ -50,7 +50,8 @@ macro(gir_add_introspections introspections_girs) set(_gir_libtool "--no-libtool") add_custom_command( - COMMAND ${INTROSPECTION_SCANNER} + COMMAND ${CMAKE_COMMAND} -E env "CC='${CMAKE_C_COMPILER}'" + ${INTROSPECTION_SCANNER} ${INTROSPECTION_SCANNER_ARGS} --namespace=${_gir_namespace} --nsversion=${_gir_version} |