mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-22 18:55:42 +00:00
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 a new issue