From 247f3c8653336ed7336887fdf3f19acb2e7a03e6 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 8 Mar 2015 13:19:50 +0100 Subject: [PATCH] Do not save the conf_cmake file in the source directory --- CMakeLists.txt | 6 +++--- src/conf_cmake.hpp.in | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02c14aa..1c13181 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,10 +11,10 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") set(NBE_MAJOR_VERSION 0) set(NBE_MINOR_VERSION 8) set(NBE_PATCH_VERSION 0) -set(NBE_DESCR_VERSION "\"0.8 - Glass\"") +set(NBE_DESCR_VERSION "0.8 - Glass") configure_file( - src/conf_cmake.hpp.in - src/conf_cmake.hpp + "${PROJECT_SOURCE_DIR}/src/conf_cmake.hpp.in" + "${PROJECT_BINARY_DIR}/conf_cmake.hpp" ) # diff --git a/src/conf_cmake.hpp.in b/src/conf_cmake.hpp.in index da99588..59e0caa 100644 --- a/src/conf_cmake.hpp.in +++ b/src/conf_cmake.hpp.in @@ -1,6 +1,6 @@ #ifndef CONF_CMAKE_HPP_INCLUDED #define CONF_CMAKE_HPP_INCLUDED -#define EDITOR_TEXT_VERSION @NBE_DESCR_VERSION@ +#define EDITOR_TEXT_VERSION "@NBE_DESCR_VERSION@" #endif