mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
Fix CMake stuff for weather.
This commit is contained in:
parent
6944cba54e
commit
0b3a4621ad
@ -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)
|
||||||
|
|
||||||
|
@ -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_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user