Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Storz <philipp.storz@bareos.com>2019-11-30 20:37:37 +0300
committerPhilipp Storz <philipp.storz@bareos.com>2019-12-06 16:17:24 +0300
commit48170045db75559e23da257e141dda8424db09ef (patch)
tree69deb5163203b0e7be1019edbdd220694d0030cd /write_version_files.cmake
parenta6003d3dd217f258e2839d5709f2cf3ba24fe7ef (diff)
cmake: apply cmake-format to all cmake files
Diffstat (limited to 'write_version_files.cmake')
-rw-r--r--write_version_files.cmake20
1 files changed, 14 insertions, 6 deletions
diff --git a/write_version_files.cmake b/write_version_files.cmake
index f37f967ed..53244cb92 100644
--- a/write_version_files.cmake
+++ b/write_version_files.cmake
@@ -17,9 +17,10 @@
cmake_minimum_required(VERSION 3.0)
-set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake"
- "${CMAKE_CURRENT_LIST_DIR}/core/cmake"
- "${CMAKE_CURRENT_LIST_DIR}/webui/cmake")
+set(CMAKE_MODULE_PATH
+ "${CMAKE_CURRENT_LIST_DIR}/cmake" "${CMAKE_CURRENT_LIST_DIR}/core/cmake"
+ "${CMAKE_CURRENT_LIST_DIR}/webui/cmake"
+)
find_package(Git)
include(BareosVersionFromGit)
@@ -34,11 +35,18 @@ else()
endif()
set(version_file_header "# autogenerated by write_version_files.cmake")
-set(version_file_contents "${version_file_header}\nset(VERSION_STRING \"${VERSION_STRING}\")\nset(VERSION_TIMESTAMP \"${VERSION_TIMESTAMP}\")\n")
+set(version_file_contents
+ "${version_file_header}\nset(VERSION_STRING \"${VERSION_STRING}\")\nset(VERSION_TIMESTAMP \"${VERSION_TIMESTAMP}\")\n"
+)
-message(STATUS "Configuring source tree for version ${VERSION_STRING} with timestamp ${VERSION_TIMESTAMP}")
+message(
+ STATUS
+ "Configuring source tree for version ${VERSION_STRING} with timestamp ${VERSION_TIMESTAMP}"
+)
foreach(subdir "core" "webui")
- set(version_file_name "${CMAKE_CURRENT_LIST_DIR}/${subdir}/cmake/BareosVersion.cmake")
+ set(version_file_name
+ "${CMAKE_CURRENT_LIST_DIR}/${subdir}/cmake/BareosVersion.cmake"
+ )
message(STATUS "Writing ${version_file_name}")
file(WRITE ${version_file_name} "${version_file_contents}")
endforeach()