diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-04-07 19:51:56 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-04-07 19:51:56 +0000 |
| commit | 57e3d080d2a7fdb4789fa1850c9cbc29f8d44446 (patch) | |
| tree | 87cb4e8f46db88eacedc37e51f4e9ceae4ce27b4 /CMakeScripts | |
| parent | cmake: EOL (diff) | |
| download | inkscape-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)
Diffstat (limited to 'CMakeScripts')
| -rw-r--r-- | CMakeScripts/ConfigInkscapeDepends.cmake | 10 |
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 |
