summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/inkscape-version.cmake
diff options
context:
space:
mode:
authorBryce Harrington <bryce@bryceharrington.org>2016-01-17 07:05:58 +0000
committerbryce <bryce@bryceharrington.org>2016-01-17 07:05:58 +0000
commitd278cb2d3be7ab401d6aae48fb39cabe8387f622 (patch)
tree1c8f0f3154870a60b28fa58e29b3b95cd04e61a4 /CMakeScripts/inkscape-version.cmake
parentcmake: Cleanup comments a bit (diff)
downloadinkscape-d278cb2d3be7ab401d6aae48fb39cabe8387f622.tar.gz
inkscape-d278cb2d3be7ab401d6aae48fb39cabe8387f622.zip
cmake: Fix code style for consistency
Indentation to 4 spaces Prefer lower case for functions and macros (bzr r14596)
Diffstat (limited to 'CMakeScripts/inkscape-version.cmake')
-rw-r--r--CMakeScripts/inkscape-version.cmake30
1 files changed, 15 insertions, 15 deletions
diff --git a/CMakeScripts/inkscape-version.cmake b/CMakeScripts/inkscape-version.cmake
index a72946ac5..cf6cadbc4 100644
--- a/CMakeScripts/inkscape-version.cmake
+++ b/CMakeScripts/inkscape-version.cmake
@@ -10,25 +10,25 @@
set(INKSCAPE_REVISION "unknown")
if(EXISTS ${INKSCAPE_SOURCE_DIR}/.bzr/)
- execute_process(COMMAND
- bzr revno --tree ${INKSCAPE_SOURCE_DIR}
- OUTPUT_VARIABLE INKSCAPE_REVISION
- OUTPUT_STRIP_TRAILING_WHITESPACE)
+ execute_process(COMMAND
+ bzr revno --tree ${INKSCAPE_SOURCE_DIR}
+ OUTPUT_VARIABLE INKSCAPE_REVISION
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
file(WRITE
- ${INKSCAPE_BINARY_DIR}/src/inkscape-version.cpp.txt
- # unlike autoconf, include config.h
- "#ifdef HAVE_CONFIG_H\n"
- "# include <config.h>\n"
- "#endif\n"
- "\n"
- "namespace Inkscape {\n"
- " char const *version_string = VERSION \" \" \"${INKSCAPE_REVISION}\";\n"
- "}\n")
+ ${INKSCAPE_BINARY_DIR}/src/inkscape-version.cpp.txt
+ # unlike autoconf, include config.h
+ "#ifdef HAVE_CONFIG_H\n"
+ "# include <config.h>\n"
+ "#endif\n"
+ "\n"
+ "namespace Inkscape {\n"
+ " char const *version_string = VERSION \" \" \"${INKSCAPE_REVISION}\";\n"
+ "}\n")
# Copy the file to the final header only if the version changes
# and avoid needless rebuilds
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different
- ${INKSCAPE_BINARY_DIR}/src/inkscape-version.cpp.txt
- ${INKSCAPE_BINARY_DIR}/src/inkscape-version.cpp)
+ ${INKSCAPE_BINARY_DIR}/src/inkscape-version.cpp.txt
+ ${INKSCAPE_BINARY_DIR}/src/inkscape-version.cpp)