From 7dc88babcdf7a7b20900ad954cde971ad31d49ae Mon Sep 17 00:00:00 2001 From: Peinthor Rene Date: Fri, 16 May 2014 18:03:52 +0200 Subject: [PATCH] cmake: reindent file --- CMakeLists.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e8b8eea..9e10ad6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,16 +108,16 @@ endif() # get git version hash if(EXISTS ${CMAKE_SOURCE_DIR}/.git) add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/src/gen_version.h - COMMAND echo "#ifndef __VERSION_H__" > ${CMAKE_SOURCE_DIR}/src/gen_version.h - COMMAND echo "#define __VERSION_H__" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h - COMMAND git log -n1 "--format=#define APP_VERSION \"%h_git\"" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h - COMMAND echo "#define MAJOR_VERSION 999" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h - COMMAND echo "#define MINOR_VERSION 0" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h - COMMAND echo "#define PATCH_VERSION 0" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h - COMMAND echo "#endif" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h - DEPENDS .git/HEAD - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - VERBATIM) + COMMAND echo "#ifndef __VERSION_H__" > ${CMAKE_SOURCE_DIR}/src/gen_version.h + COMMAND echo "#define __VERSION_H__" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h + COMMAND git log -n1 "--format=#define APP_VERSION \"%h_git\"" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h + COMMAND echo "#define MAJOR_VERSION 999" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h + COMMAND echo "#define MINOR_VERSION 0" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h + COMMAND echo "#define PATCH_VERSION 0" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h + COMMAND echo "#endif" >> ${CMAKE_SOURCE_DIR}/src/gen_version.h + DEPENDS .git/HEAD + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + VERBATIM) else() file(WRITE ${CMAKE_SOURCE_DIR}/src/gen_version.h "#ifndef __GEN_VERSIONS_H__\n#define __GEN_VERSIONS_H__\n#define APP_VERSION \"3.0.1\"\n#define MAJOR_VERSION 3\n#define MINOR_VERSION 0\n#define PATCH_VERSION 1\n#endif") endif()