summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2019-08-23 14:50:09 +0800
committerAllen Winter <allen.winter@kdab.com>2019-08-25 09:10:16 -0400
commitd86483bf16edb650302866e353ec238066670ac2 (patch)
tree1e27fbdd39d81644cdf6c29f3955422b8e6c059b /cmake
parent077146cba32bb569dda33045d41f9a64fb099078 (diff)
downloadlibical-git-d86483bf16edb650302866e353ec238066670ac2.tar.gz
GtkDoc.cmake - include CFLAGS in gtkdoc-scangobj command line as well
Sync the follow-up change from evolution-data-server: https://gitlab.gnome.org/GNOME/evolution-data-server/commit/78dc64008f1312a97eaa56b5c12f93a2bfa3b096
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 3937874b..03ff3cef 100644
--- a/cmake/modules/GtkDoc.cmake
+++ b/cmake/modules/GtkDoc.cmake
@@ -96,6 +96,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)