Only configure @VARIABLES@ in version.hpp.in.

This commit is contained in:
tastytea 2019-12-29 10:32:16 +01:00
parent dcc07fab75
commit fec7ac92da
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 3 deletions

View File

@ -22,9 +22,8 @@ if(NOT ${restclient-cpp_FOUND})
endif()
# Write version in header.
configure_file (
"${PROJECT_SOURCE_DIR}/src/version.hpp.in"
"${PROJECT_BINARY_DIR}/version.hpp")
configure_file ("${PROJECT_SOURCE_DIR}/src/version.hpp.in"
"${PROJECT_BINARY_DIR}/version.hpp" @ONLY)
include_directories("${PROJECT_BINARY_DIR}")