summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-04-07 19:51:56 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-04-07 19:51:56 +0000
commit57e3d080d2a7fdb4789fa1850c9cbc29f8d44446 (patch)
tree87cb4e8f46db88eacedc37e51f4e9ceae4ce27b4
parentcmake: EOL (diff)
downloadinkscape-57e3d080d2a7fdb4789fa1850c9cbc29f8d44446.tar.gz
inkscape-57e3d080d2a7fdb4789fa1850c9cbc29f8d44446.zip
cmake: generate config files in CMAKE_BINARY_DIR instead of CMAKE_CURRENT_BINARY_DIR . add extra comments.
(bzr r5378)
-rw-r--r--CMakeScripts/ConfigInkscapeDepends.cmake10
1 files 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