[evolution-data-server] Bug 773309 - Export the C compiler for introspection



commit 2be6f7dbcc5c94822f3d6372691725cd171d57c4
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Oct 21 12:48:27 2016 +0200

    Bug 773309 - Export the C compiler for introspection

 cmake/modules/GObjectIntrospection.cmake |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/cmake/modules/GObjectIntrospection.cmake b/cmake/modules/GObjectIntrospection.cmake
index ea30108..5509192 100644
--- a/cmake/modules/GObjectIntrospection.cmake
+++ b/cmake/modules/GObjectIntrospection.cmake
@@ -101,7 +101,8 @@ macro(gir_add_introspection gir)
                set(_gir_libtool "--no-libtool")
 
                add_custom_command(
-                       COMMAND ${G_IR_SCANNER}
+                       COMMAND ${CMAKE_COMMAND} -E env "CC='${CMAKE_C_COMPILER}'"
+                                ${G_IR_SCANNER}
                                ${INTROSPECTION_SCANNER_ARGS}
                                --namespace=${_gir_namespace}
                                --nsversion=${_gir_version}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]