Skip to content

Commit

Permalink
automatically set year during configure step
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Mar 3, 2024
1 parent f085668 commit 15a8d48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ARRCON/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ file(GLOB_RECURSE SRCS
"*.c*"
)

string(TIMESTAMP _current_year "%Y")

file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/rc")
if (WIN32)
include(ResourceMaker)

MAKE_STRINGRC_VERSIONINFO(
_arrcon_stringrc_versioninfo
"${ARRCON_VERSION}"
"Copyright © 2022 by radj307"
"Copyright © ${_current_year} by radj307"
"radj307"
"ARRCON"
"Commandline client for communicating with servers using the Source RCON Protocol."
Expand All @@ -32,7 +34,7 @@ endif()

MAKE_VERSION_HEADER("${CMAKE_CURRENT_BINARY_DIR}/rc/version.h" ARRCON "${ARRCON_VERSION_EXTENDED}")
include(CopyrightMaker)
MAKE_COPYRIGHT_HEADER("${CMAKE_CURRENT_BINARY_DIR}/rc/copyright.h" ARRCON 2022 radj307)
MAKE_COPYRIGHT_HEADER("${CMAKE_CURRENT_BINARY_DIR}/rc/copyright.h" ARRCON ${_current_year} radj307)

file(GLOB RESOURCES
CONFIGURE_DEPENDS
Expand Down

0 comments on commit 15a8d48

Please sign in to comment.