1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

Fix CMake stuff for weather.

This commit is contained in:
Brenden Matthews 2009-12-09 16:12:11 -08:00
parent 6944cba54e
commit 0b3a4621ad
2 changed files with 10 additions and 4 deletions

View File

@ -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_METAR "Enable METAR weather support" false)
option(BUILD_WEATHER_XOAP "Enable XOAP 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)

View File

@ -104,15 +104,18 @@
#define HAVE_CURL #define HAVE_CURL
#endif /* BUILD_CURL */ #endif /* BUILD_CURL */
#cmakedefine BUILD_WEATHER 1
#cmakedefine BUILD_WEATHER_XOAP 1 #cmakedefine BUILD_WEATHER_XOAP 1
#cmakedefine BUILD_WEATHER_METAR 1
#ifdef BUILD_WEATHER_XOAP #ifdef BUILD_WEATHER_XOAP
#define XOAP #define XOAP
#define XOAP_FILE "$HOME/.xoaprc" #define XOAP_FILE "$HOME/.xoaprc"
#endif /* BUILD_WEATHER_XOAP */ #endif /* BUILD_WEATHER_XOAP */
#cmakedefine BUILD_WEATHER_METAR 1 #ifdef BUILD_WEATHER
#ifdef BUILD_WEATHER_METAR #define WEATHER
#define BUILD_WEATHER #define WEATHER
#endif /* BUILD_WEATHER_METAR */ #endif /* BUILD_WEATHER */
#endif /* _conky_config_h_ */ #endif /* _conky_config_h_ */