From 549faa5f37fd99717d17226b5810d19f31f72c7e Mon Sep 17 00:00:00 2001 From: johanengelen Date: Mon, 7 Apr 2008 19:51:56 +0000 Subject: [PATCH] cmake: generate config files in CMAKE_BINARY_DIR instead of CMAKE_CURRENT_BINARY_DIR . add extra comments. --- CMakeScripts/ConfigInkscapeDepends.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeScripts/ConfigInkscapeDepends.cmake b/CMakeScripts/ConfigInkscapeDepends.cmake index e573b914b..36a6d66a0 100644 --- a/CMakeScripts/ConfigInkscapeDepends.cmake +++ b/CMakeScripts/ConfigInkscapeDepends.cmake @@ -108,9 +108,9 @@ CHECK_INCLUDE_FILES (zlib.h HAVE_ZLIB_H) SET(PANGO_ENABLE_ENGINE TRUE) SET(RENDER_WITH_PANGO_CAIRO TRUE) -CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) - -# Create File inkscape_version.h -FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n") -INCLUDE_DIRECTORIES ("${CMAKE_CURRENT_BINARY_DIR}") # Include base dir, so other files can refer to the generated files. +# Create the two configuration files: config.h and inkscape_version.h +# Create them in the binary root dir +CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h) +FILE(WRITE ${CMAKE_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n") +INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}") # Include base dir, so other files can refer to the generated files. # CMAKE_INCLUDE_CURRENT_DIR is not enough as it only includes the current dir and not the basedir with config.h in it \ No newline at end of file -- 2.30.2