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:
authorAndreas Rogge <andreas.rogge@bareos.com>2020-01-20 20:57:37 +0300
committerAndreas Rogge <andreas.rogge@bareos.com>2020-01-20 20:57:37 +0300
commit6884a70b64b23abe63240d339fda715965be6717 (patch)
treefe02072f64dee527f9a8545f9613508f78e02cf0 /write_version_files.cmake
parent7267bc4d2b5cd64a88335ff0dfa3836ff39d8e1b (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, 11 insertions, 9 deletions
diff --git a/write_version_files.cmake b/write_version_files.cmake
index 4d336da8c..8a8280f15 100644
--- a/write_version_files.cmake
+++ b/write_version_files.cmake
@@ -17,10 +17,9 @@
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)
@@ -35,12 +34,14 @@ else()
FATAL_ERROR
"VERSION_STRING not set, BareosVersion.cmake not found and no version data from git available.\n"
"For more information why this happened and how to fix it, please see "
- "https://docs.bareos.org/DeveloperGuide/AutomaticVersionGeneration.html#troubleshooting")
+ "https://docs.bareos.org/DeveloperGuide/AutomaticVersionGeneration.html#troubleshooting"
+ )
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(
@@ -48,8 +49,9 @@ message(
"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}")