From 802c624ab38494c3e27093af528710b6da28d12f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 20 Nov 2022 14:37:05 -0800 Subject: [PATCH] Strip trailing newline when reading the VERSION file --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 05bbac494..bf0c5e9ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)