diff --git a/CMakeLists.txt b/CMakeLists.txt index 807924b..e055964 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,11 @@ add_library(libossp OBJECT "ossp-util.h" ) +target_compile_definitions(libossp + PUBLIC + "OSSP_VERSION=\"${PROJECT_VERSION}\"" +) + # Daemon if(daemon) add_executable(osspd "osspd.c") diff --git a/ossp.h b/ossp.h index 8fdd393..d90bf2b 100644 --- a/ossp.h +++ b/ossp.h @@ -15,7 +15,6 @@ #include #include -#define OSSP_VERSION "1.3.2" #define OSSP_CMD_MAGIC 0xdeadbeef #define OSSP_REPLY_MAGIC 0xbeefdead #define OSSP_NOTIFY_MAGIC 0xbebebebe