added ENABLE_GUI option

master
Ismael Gomez 8 years ago
parent b7551111cb
commit 3327024c16

@ -53,6 +53,7 @@ configure_file(
option(STATIC_MKL "Statically link MKL libraries" OFF)
option(DISABLE_BLADERF "Disable BladeRF" OFF)
option(RPATH "Enable RPATH" OFF)
option(ENABLE_GUI "Enable GUI" ON)
set(GCC_ARCH native CACHE STRING "GCC compile for specific architecture.")

@ -287,7 +287,7 @@ void phch_worker::work_imp()
/* Tell the plotting thread to draw the plots */
#ifdef ENABLE_GUI
if (get_id() == plot_worker_id) {
if ((int) get_id() == plot_worker_id) {
sem_post(&plot_sem);
}
#endif

Loading…
Cancel
Save