CMakeLists.txt: Use version.txt in CONFIGURE_FILE().

This isn't actually used as a configuration file, but it forces CMake to
rerun if the file is changed.
This commit is contained in:
David Korth 2020-09-20 15:05:30 -04:00
parent 7946929633
commit 567af35525

View File

@ -3,6 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
CMAKE_POLICY(SET CMP0048 NEW)
# Read the project version.
CONFIGURE_FILE(version.txt version.txt.tmp)
FILE(STRINGS version.txt RP_VERSION_FILE)
IF(NOT RP_VERSION_FILE)
MESSAGE(FATAL_ERROR "version.txt not found; cannot determine project version.")