Save the version in VERSION.txt instead of VERSION

Fixes https://github.com/libsdl-org/SDL/issues/6558
This commit is contained in:
Sam Lantinga
2022-11-21 06:57:02 -08:00
parent 802c624ab3
commit 8ae46a49ea
5 changed files with 7 additions and 7 deletions

View File

@@ -2960,8 +2960,8 @@ set(EXTRA_CFLAGS ${_EXTRA_CFLAGS})
# Compat helpers for the configuration files
if(EXISTS "${PROJECT_SOURCE_DIR}/VERSION")
file(READ "${PROJECT_SOURCE_DIR}/VERSION" SDL_SOURCE_VERSION)
if(EXISTS "${PROJECT_SOURCE_DIR}/VERSION.txt")
file(READ "${PROJECT_SOURCE_DIR}/VERSION.txt" SDL_SOURCE_VERSION)
string(STRIP "${SDL_SOURCE_VERSION}" SDL_SOURCE_VERSION)
endif()