Skip to content

Commit 15a8d48

Browse files
committed
automatically set year during configure step
1 parent f085668 commit 15a8d48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: ARRCON/CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ file(GLOB_RECURSE SRCS
1010
"*.c*"
1111
)
1212

13+
string(TIMESTAMP _current_year "%Y")
14+
1315
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/rc")
1416
if (WIN32)
1517
include(ResourceMaker)
1618

1719
MAKE_STRINGRC_VERSIONINFO(
1820
_arrcon_stringrc_versioninfo
1921
"${ARRCON_VERSION}"
20-
"Copyright © 2022 by radj307"
22+
"Copyright © ${_current_year} by radj307"
2123
"radj307"
2224
"ARRCON"
2325
"Commandline client for communicating with servers using the Source RCON Protocol."
@@ -32,7 +34,7 @@ endif()
3234

3335
MAKE_VERSION_HEADER("${CMAKE_CURRENT_BINARY_DIR}/rc/version.h" ARRCON "${ARRCON_VERSION_EXTENDED}")
3436
include(CopyrightMaker)
35-
MAKE_COPYRIGHT_HEADER("${CMAKE_CURRENT_BINARY_DIR}/rc/copyright.h" ARRCON 2022 radj307)
37+
MAKE_COPYRIGHT_HEADER("${CMAKE_CURRENT_BINARY_DIR}/rc/copyright.h" ARRCON ${_current_year} radj307)
3638

3739
file(GLOB RESOURCES
3840
CONFIGURE_DEPENDS

0 commit comments

Comments
 (0)