summaryrefslogblamecommitdiffstats
path: root/cmake/GenerateBuild.cmake
blob: 96b29062b84ea4283a6479e26d748757c9ad0458 (plain) (tree)
1
2
3
4
5
6
7
8






                                                                   
                                                 


                                                                                            
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2020 Manuel Bentele <development@manuel-bentele.de>
#

# set current build type of the project
set(DNBD3_BUILD ${BUILD_TYPE})
string(TIMESTAMP DNBD3_BUILD_DATE "%Y-%m-%d" UTC)

# write dnbd3 build type into a new C source file based on the specified build file template
configure_file(${BUILD_INPUT_FILE_TEMPLATE} ${BUILD_OUTPUT_FILE})