Skip to content

Commit

Permalink
Define OSSP_VERSION in CMake project
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebeatrici committed Aug 27, 2022
1 parent f477cac commit 9462219
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion ossp.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <semaphore.h>
#include <sys/soundcard.h>

#define OSSP_VERSION "1.3.2"
#define OSSP_CMD_MAGIC 0xdeadbeef
#define OSSP_REPLY_MAGIC 0xbeefdead
#define OSSP_NOTIFY_MAGIC 0xbebebebe
Expand Down

0 comments on commit 9462219

Please sign in to comment.