pass version number to source files
This commit is contained in:
parent
d8550894ba
commit
4ef552ba39
|
|
@ -24,9 +24,11 @@ option(AMQP-CPP_BUILD_SHARED "Build shared library. If off, build will be static
|
|||
option(AMQP-CPP_LINUX_TCP "Build linux sockets implementation." OFF)
|
||||
option(AMQP-CPP_BUILD_EXAMPLES "Build amqpcpp examples" OFF)
|
||||
|
||||
# pass version number to source files as macro
|
||||
add_compile_definitions(VERSION=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
|
||||
|
||||
# ensure c++11 on all compilers
|
||||
set (CMAKE_CXX_STANDARD 17
|
||||
)
|
||||
set (CMAKE_CXX_STANDARD 17)
|
||||
|
||||
# add source files
|
||||
# ------------------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue