build: auto update version info without manually deleting version.h

This commit is contained in:
stoffu 2017-09-14 08:28:23 +09:00
parent a6403846ef
commit e29282d208
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012
20 changed files with 63 additions and 46 deletions

View file

@ -94,6 +94,7 @@ target_link_libraries(daemon
daemonizer
serialization
daemon_rpc_server
version
${Boost_CHRONO_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY}
@ -102,7 +103,6 @@ target_link_libraries(daemon
${CMAKE_THREAD_LIBS_INIT}
${ZMQ_LIB}
${EXTRA_LIBRARIES})
add_dependencies(daemon version)
set_property(TARGET daemon
PROPERTY
OUTPUT_NAME "monerod")