Code

cmake: generate config files in CMAKE_BINARY_DIR instead of CMAKE_CURRENT_BINARY_DIR...
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 7 Apr 2008 19:51:56 +0000 (19:51 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 7 Apr 2008 19:51:56 +0000 (19:51 +0000)
CMakeScripts/ConfigInkscapeDepends.cmake

index e573b914b8ab212982b341093a0c816ac0dd18f3..36a6d66a0e8eec63e251d172ebddb45fb146ddb5 100644 (file)
@@ -108,9 +108,9 @@ CHECK_INCLUDE_FILES (zlib.h HAVE_ZLIB_H)
 SET(PANGO_ENABLE_ENGINE TRUE)\r
 SET(RENDER_WITH_PANGO_CAIRO TRUE)\r
 \r
-CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)\r
-\r
-# Create File inkscape_version.h\r
-FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")\r
-INCLUDE_DIRECTORIES ("${CMAKE_CURRENT_BINARY_DIR}")  # Include base dir, so other files can refer to the generated files.\r
+# Create the two configuration files: config.h and inkscape_version.h\r
+# Create them in the binary root dir\r
+CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)\r
+FILE(WRITE ${CMAKE_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")\r
+INCLUDE_DIRECTORIES ("${CMAKE_BINARY_DIR}")  # Include base dir, so other files can refer to the generated files.\r
 # 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