this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixing regex for bugfix version.

+3 -3
+3 -3
CMakeLists.txt
··· 10 10 endif() 11 11 12 12 if(NOT DEFINED VERSION_MAJOR) 13 - string(REGEX MATCH "^[0-9]*" VERSION_MAJOR ${VERSION_FILE_CONTENTS}) 13 + string(REGEX MATCH "^[0-9]+" VERSION_MAJOR ${VERSION_FILE_CONTENTS}) 14 14 endif() 15 15 if(NOT DEFINED VERSION_MINOR) 16 - string(REGEX MATCH "[.][0-9]*[.]" VERSION_MINOR ${VERSION_FILE_CONTENTS}) 16 + string(REGEX MATCH "[.][0-9]+[.]" VERSION_MINOR ${VERSION_FILE_CONTENTS}) 17 17 # Chop off the dots 18 18 string(LENGTH ${VERSION_MINOR} VERSION_MINOR_LENGTH) 19 19 string(SUBSTRING ${VERSION_MINOR} 1 ${VERSION_MINOR_LENGTH}-2 VERSION_MINOR) 20 20 endif() 21 21 if(NOT DEFINED VERSION_BUGFIX) 22 - string(REGEX MATCH "[0-9]*$" VERSION_MAJOR ${VERSION_FILE_CONTENTS}) 22 + string(REGEX MATCH "[0-9]+$" VERSION_MAJOR ${VERSION_FILE_CONTENTS}) 23 23 endif() 24 24 25 25 set(SDL_gpu_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUGFIX})