diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-03-03 20:10:04 -0800 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-03-06 10:22:14 -0500 |
commit | bd3e04552a2beb105510eefb631c82de286237fb (patch) | |
tree | 5475324611e66147ddb1fce88a966ad01ac72b8d | |
parent | c55629b029a967b4707378816ff5ee95dbf9e199 (diff) | |
download | libical-git-bd3e04552a2beb105510eefb631c82de286237fb.tar.gz |
cmake: Do not export CC into gir compiler
this helps cross compilers where full compiler commandline defines the
compiler rather than just CC variable, therefore let it use the default
values from environment and not synthesize it from CMAKE_C_COMPILER just
for this case.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | cmake/modules/GObjectIntrospectionMacros.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/modules/GObjectIntrospectionMacros.cmake b/cmake/modules/GObjectIntrospectionMacros.cmake index 198e809a..d8b37f29 100644 --- a/cmake/modules/GObjectIntrospectionMacros.cmake +++ b/cmake/modules/GObjectIntrospectionMacros.cmake @@ -75,8 +75,7 @@ macro(gir_add_introspections introspections_girs) set(_gir_libtool "--no-libtool") add_custom_command( - COMMAND ${CMAKE_COMMAND} -E env "CC='${CMAKE_C_COMPILER}'" - ${GObjectIntrospection_SCANNER} + COMMAND ${GObjectIntrospection_SCANNER} ${GObjectIntrospection_SCANNER_ARGS} --namespace=${_gir_namespace} --nsversion=${_gir_version} |