Used Bloom version number from CMakeLists.txt file instead of repeating

This commit is contained in:
Nav
2022-01-22 16:46:41 +00:00
parent dc0c8643d7
commit 752aaeffcf
2 changed files with 3 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ set(CMAKE_BUILD_RPATH_USE_ORIGIN true)
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
set(CMAKE_BUILD_RPATH ${CMAKE_INSTALL_RPATH})
add_compile_definitions(BLOOM_VERSION="${CMAKE_PROJECT_VERSION}")
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
add_compile_definitions(BLOOM_DEBUG_BUILD)