diff options
| author | Milan Crha <mcrha@redhat.com> | 2017-12-11 10:33:25 +0100 |
|---|---|---|
| committer | Milan Crha <mcrha@redhat.com> | 2017-12-11 10:33:25 +0100 |
| commit | d45a5b6261c8ec97b0fbde74d8c5212caff6ef2f (patch) | |
| tree | 0759d39402d328991cf53ea9dedf5c9996c2a2ea /CMakeLists.txt | |
| parent | 02a9138edcb0d190c89740528ee45cea96d14371 (diff) | |
| download | evolution-data-server-d45a5b6261c8ec97b0fbde74d8c5212caff6ef2f.tar.gz | |
Bug 791327 - Adapt to gweather_info_new() API change
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e6f396c29..a9ec83fef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -731,6 +731,19 @@ add_printable_option(ENABLE_WEATHER "Build the weather calendar backend" ON) if(ENABLE_WEATHER) pkg_check_modules_for_option(ENABLE_WEATHER "weather calendar backend" LIBGWEATHER gweather-3.0>=${gweather_minimum_version}) + + set(CMAKE_REQUIRED_INCLUDES ${LIBGWEATHER_INCLUDE_DIRS}) + set(CMAKE_REQUIRED_LIBRARIES ${LIBGWEATHER_LDFLAGS}) + CHECK_C_SOURCE_COMPILES("#define GWEATHER_I_KNOW_THIS_IS_UNSTABLE + #include <libgweather/gweather.h> + #undef GWEATHER_I_KNOW_THIS_IS_UNSTABLE + + int main(void) { + gweather_info_new (NULL); + return 0; + }" HAVE_ONE_ARG_GWEATHER_INFO_NEW) + unset(CMAKE_REQUIRED_INCLUDES) + unset(CMAKE_REQUIRED_LIBRARIES) endif(ENABLE_WEATHER) # ****************************** |
