version.cmake: fix configuring version.cpp without git

This commit is contained in:
moneromooo-monero 2018-05-15 18:40:16 +01:00
parent bab5bbfc19
commit 41cb11b211
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -28,7 +28,7 @@
function (write_static_version_header hash) function (write_static_version_header hash)
set(VERSIONTAG "${hash}") set(VERSIONTAG "${hash}")
configure_file("src/version.cpp.in" "version.cpp") configure_file("${CMAKE_SOURCE_DIR}/src/version.cpp.in" "${CMAKE_BINARY_DIR}/version.cpp")
endfunction () endfunction ()
find_package(Git QUIET) find_package(Git QUIET)