mirror of https://github.com/encounter/SDL.git
Strip trailing newline when reading the VERSION file
This commit is contained in:
parent
3bc4bad8fb
commit
802c624ab3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue