From fec7ac92dac1205cf5daadc0cb73d07c90c39e41 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 29 Dec 2019 10:32:16 +0100 Subject: [PATCH] Only configure @VARIABLES@ in version.hpp.in. --- src/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 69106c5..b9971cc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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}")