diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-09-25 16:50:35 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-09-25 16:50:35 +0200 |
commit | b911130a4651627e3c4307df7bac577d25267405 (patch) | |
tree | 083d48b0dca48340151dd7c8c66d3e49232313f7 /src/CMakeLists.txt | |
parent | Merge pull request #2440 (diff) | |
parent | build: auto update version info without manually deleting version.h (diff) | |
download | monero-b911130a4651627e3c4307df7bac577d25267405.tar.xz |
Merge pull request #2442
e29282d2 build: auto update version info without manually deleting version.h (stoffu)
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e3cb7cfd6..3e0bfb59c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -96,6 +96,9 @@ function (monero_add_library name) PRIVATE $<TARGET_PROPERTY:${name},INTERFACE_COMPILE_DEFINITIONS>) endfunction () +set_source_files_properties(${CMAKE_BINARY_DIR}/version.cpp PROPERTIES GENERATED ON) +monero_add_library(version ${CMAKE_BINARY_DIR}/version.cpp) + add_subdirectory(common) add_subdirectory(crypto) add_subdirectory(ringct) |