client-gnome build fails when libnotify is not installed
Issue generated from Tuleap's migration script. Originally submitted by: Rafał Babski (raphaaldev)
According to https://tuleap.ring.cx/plugins/mediawiki/wiki/ring/index.php/Build_Instructions libnotify is optional dependency. But when isn't installed build fails.
* Environment:
Debian unstable amd64, libnotify-dev is not installed.
* Reproduce steps:
Just run ./make-ring.py --install
* Expected result:
Ring project should compile without installed libnotify-dev.
* Actual result (stripped):
[ 80%] Building CXX object CMakeFiles/gnome-ring.dir/src/utils/files.cpp.o
/home/raphael/sources/ring-project/client-gnome/src/ringnotify.cpp:122:21: error: variable or field ‘ring_notify_show_cm’ declared void
ring_notify_show_cm(NotifyNotification*, char *, ContactMethod *cm)
^~~~~~~~~~~~~~~~~~
/home/raphael/sources/ring-project/client-gnome/src/ringnotify.cpp:122:21: error: ‘NotifyNotification’ was not declared in this scope
/home/raphael/sources/ring-project/client-gnome/src/ringnotify.cpp:122:40: error: expected primary-expression before ‘,’ token
ring_notify_show_cm(NotifyNotification*, char *, ContactMethod *cm)
^
/home/raphael/sources/ring-project/client-gnome/src/ringnotify.cpp:122:42: error: expected primary-expression before ‘char’
ring_notify_show_cm(NotifyNotification*, char *, ContactMethod *cm)
^~~~
/home/raphael/sources/ring-project/client-gnome/src/ringnotify.cpp:122:64: error: expected primary-expression before ‘*’ token
ring_notify_show_cm(NotifyNotification*, char *, ContactMethod *cm)
^
/home/raphael/sources/ring-project/client-gnome/src/ringnotify.cpp:122:65: error: ‘cm’ was not declared in this scope
ring_notify_show_cm(NotifyNotification*, char *, ContactMethod *cm)
^~