Strip trailing newline when reading the VERSION file

This commit is contained in:
Sam Lantinga 2022-11-20 14:37:05 -08:00
parent 3bc4bad8fb
commit 802c624ab3
1 changed files with 1 additions and 0 deletions

View File

@ -2962,6 +2962,7 @@ set(EXTRA_CFLAGS ${_EXTRA_CFLAGS})
if(EXISTS "${PROJECT_SOURCE_DIR}/VERSION")
file(READ "${PROJECT_SOURCE_DIR}/VERSION" SDL_SOURCE_VERSION)
string(STRIP "${SDL_SOURCE_VERSION}" SDL_SOURCE_VERSION)
endif()
find_package(Git)