Skip to content

Commit

Permalink
fixed cmake version check
Browse files Browse the repository at this point in the history
  • Loading branch information
oy committed Apr 22, 2019
1 parent e0d0bf1 commit 5ec1289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ file(STRINGS src/game/version.h VERSION_LINE
REGEX GAME_RELEASE_VERSION
)

if(VERSION_LINE MATCHES "\"([0-9]+)\\.([0-9]+)\\.([0-9]+)\"")
if(VERSION_LINE MATCHES "\"([0-9]+)\\.([0-9]+)\\.([0-9]+|[0-9]+\\.[0-9]+)\"")
set(VERSION_MAJOR ${CMAKE_MATCH_1})
set(VERSION_MINOR ${CMAKE_MATCH_2})
set(VERSION_PATCH ${CMAKE_MATCH_3})
Expand Down

0 comments on commit 5ec1289

Please sign in to comment.