diff --git a/cmake/ConkyBuildOptions.cmake b/cmake/ConkyBuildOptions.cmake index f20fede6..f1864d73 100644 --- a/cmake/ConkyBuildOptions.cmake +++ b/cmake/ConkyBuildOptions.cmake @@ -79,4 +79,7 @@ option(BUILD_RSS "Enable if you want RSS support" false) option(BUILD_WEATHER_METAR "Enable METAR weather support" false) option(BUILD_WEATHER_XOAP "Enable XOAP weather support" false) +if(BUILD_WEATHER_METAR OR BUILD_WEATHER_XOAP) + set(BUILD_CURL true) +endif(BUILD_WEATHER_METAR OR BUILD_WEATHER_XOAP) diff --git a/cmake/config.h.in b/cmake/config.h.in index a1d48731..4ed44f18 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -104,15 +104,18 @@ #define HAVE_CURL #endif /* BUILD_CURL */ +#cmakedefine BUILD_WEATHER 1 #cmakedefine BUILD_WEATHER_XOAP 1 +#cmakedefine BUILD_WEATHER_METAR 1 + #ifdef BUILD_WEATHER_XOAP #define XOAP #define XOAP_FILE "$HOME/.xoaprc" #endif /* BUILD_WEATHER_XOAP */ -#cmakedefine BUILD_WEATHER_METAR 1 -#ifdef BUILD_WEATHER_METAR -#define BUILD_WEATHER -#endif /* BUILD_WEATHER_METAR */ +#ifdef BUILD_WEATHER +#define WEATHER +#define WEATHER +#endif /* BUILD_WEATHER */ #endif /* _conky_config_h_ */