1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Merge pull request #14340 from Chocobo1/cmake

Use built-in function for configuring file contents
This commit is contained in:
Mike Tzou 2021-02-06 11:01:10 +08:00 committed by GitHub
commit 2d27083509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,5 +61,4 @@ else()
endif()
# Generate version header
file(READ "src/base/version.h.in" versionHeader)
file(WRITE "src/base/version.h" "${versionHeader}")
configure_file("src/base/version.h.in" "${CMAKE_CURRENT_SOURCE_DIR}/src/base/version.h" @ONLY)