summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alsa-binding/Alsa-ApiHat.h1
-rw-r--r--conf.d/cmake/config.cmake2
2 files changed, 2 insertions, 1 deletions
diff --git a/alsa-binding/Alsa-ApiHat.h b/alsa-binding/Alsa-ApiHat.h
index 50337db..ae735e8 100644
--- a/alsa-binding/Alsa-ApiHat.h
+++ b/alsa-binding/Alsa-ApiHat.h
@@ -23,7 +23,6 @@
#include <alsa/asoundlib.h>
#include <systemd/sd-event.h>
-#define AFB_BINDING_VERSION 2
#include <afb/afb-binding.h>
#include <json-c/json.h>
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index d3ed120..be142c8 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -136,6 +136,8 @@ set(COMPILE_OPTIONS
# -O2
# CACHE STRING "Compilation flags for RELEASE build type.")
+add_definitions(-DAFB_BINDING_VERSION=2)
+
# (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable]
# ---------------------------------------------------------------------
set(CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}/lib64/pkgconfig ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)