summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2019-08-05 12:55:23 +0200
committerMilan Crha <mcrha@redhat.com>2019-08-05 12:58:26 +0200
commit540d239705f5fa5a9064968d478408703af2aa01 (patch)
tree724ec5f9571720bf076b405ac383744221939e5d /cmake
parentf830b6b8fb6139e8a48d7f516d467caadcd709cf (diff)
downloadevolution-540d239705f5fa5a9064968d478408703af2aa01.tar.gz
Include also CFLAGS in gtkdoc-scangobj command line
The LDFLAGS could imply certain compile options being used (like -fPIC), but these CFLAGS were not passed to gtkdoc-scangobj, thus the compilation could fail. Related to https://gitlab.gnome.org/GNOME/evolution-data-server/merge_requests/28
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/GtkDoc.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/GtkDoc.cmake b/cmake/modules/GtkDoc.cmake
index 0ba1a7a78a..2dfc4d6910 100644
--- a/cmake/modules/GtkDoc.cmake
+++ b/cmake/modules/GtkDoc.cmake
@@ -98,6 +98,7 @@ macro(add_gtkdoc _module _namespace _deprecated_guards _srcdirsvar _depsvar _ign
# Add it as the last, thus in-tree headers have precedence
list(APPEND _scangobj_cflags_list -I${INCLUDE_INSTALL_DIR})
+ list(APPEND _scangobj_cflags_list ${CMAKE_C_FLAGS})
if(_scangobj_deps)
list(REMOVE_DUPLICATES _scangobj_deps)