news-to-appdata.c is built without `-Iglib-2.0`
Calling ccmake
with the newest source code produces in CMakeFiles/CMakeError.log:
Change Dir: /git/gnome/evolution/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja-build cmTC_b13d7 && [1/2] Building C object CMakeFiles/cmTC_b13d7.dir/src.c.o
FAILED: CMakeFiles/cmTC_b13d7.dir/src.c.o
/usr/bin/cc -D_news_to_appdata_result -Wnested-externs -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wno-missing-include-dirs -Wno-deprecated-declarations -fno-strict-aliasing -Wl,--no-undefined -Wno-cast-function-type -Wwrite-strings -Wundef -Wredundant-decls -Wpointer-arith -Wmissing-noreturn -Wmissing-declarations -Winit-self -Wformat-security -Wformat -fPIE -o CMakeFiles/cmTC_b13d7.dir/src.c.o -c /git/gnome/evolution/build/CMakeFiles/CMakeTmp/src.c
In file included from /git/gnome/evolution/build/CMakeFiles/CMakeTmp/src.c:6:
/git/gnome/evolution/news-to-appdata.c:10:10: fatal error: glib.h: No such file or directory
10 | #include <glib.h>
| ^~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
...and run output:
Return value: 1
Source file was:
#define BUILD_RUN 1
#define BUILD_OUTPUT "/git/gnome/evolution/build/appdata-releases.txt"
#define BUILD_TYPE "development"
#define BUILD_VERSION "3.45"
#define BUILD_NEWS_FILE "/git/gnome/evolution/NEWS"
#include "/git/gnome/evolution/news-to-appdata.c"
I have glib.h
in /usr/include/glib-2.0/
and the cc
-line above has no -I/usr/include/glib-2.0
. For the record, I deleted everything in the build directory and then called ccmake
.