From ae04b1a18e66e5030843c585acee88bd91ad380a Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Tue, 12 Feb 2013 17:40:32 +0100 Subject: [PATCH] Cmake build: Correct the previous commit. We have to apply configure_file() twice, therefor the new file. --- CMakeLists.txt | 2 ++ development/cmake/configCompiler.h.cmake | 2 +- development/cmake/configFunctions.cmake | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 development/cmake/configFunctions.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index abf9ce0e20..68c7d0323c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -696,6 +696,8 @@ if(MSVC AND NOT LYX_CONFIGURE_CHECKS) configure_file(${LYX_CMAKE_DIR}/configCompiler.h.msvc ${TOP_BINARY_DIR}/configCompiler.h) else() include(${LYX_CMAKE_DIR}/ConfigureChecks.cmake) + configure_file(${LYX_CMAKE_DIR}/configFunctions.cmake ${TOP_BINARY_DIR}/configFunctions.h.cmake) + configure_file(${TOP_BINARY_DIR}/configFunctions.h.cmake ${TOP_BINARY_DIR}/configFunctions.h) configure_file(${LYX_CMAKE_DIR}/configCompiler.h.cmake ${TOP_BINARY_DIR}/configCompiler.h) endif() diff --git a/development/cmake/configCompiler.h.cmake b/development/cmake/configCompiler.h.cmake index 904671e905..fc630489a5 100644 --- a/development/cmake/configCompiler.h.cmake +++ b/development/cmake/configCompiler.h.cmake @@ -30,7 +30,7 @@ #cmakedefine HAVE_IOS 1 #cmakedefine HAVE_LOCALE 1 -${Function_Defines} +#include "configCompiler.h" #cmakedefine HAVE_STD_COUNT 1 #cmakedefine HAVE_ASPRINTF 1 diff --git a/development/cmake/configFunctions.cmake b/development/cmake/configFunctions.cmake new file mode 100644 index 0000000000..eaaabbae11 --- /dev/null +++ b/development/cmake/configFunctions.cmake @@ -0,0 +1,17 @@ +/* + * \file configFunctions.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * This is the compilation configuration file for LyX. + * It was generated by cmake. + * You might want to change some of the defaults if something goes wrong + * during the compilation. + */ + +#ifndef _CONFIG_FUNCTIONS_H +#define _CONFIG_FUNCTION_H + +${Function_Defines} + +#endif