Skip to content

Commit 5731238

Browse files
authored
Fix CMake version. (#170)
1 parent 96a2f3a commit 5731238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config.cmake.in
1919
)
2020

2121
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/src/version.rc" uibase_version)
22-
string(REGEX MATCH "#define VER_FILEVERSION\\s*([0-9]+),([0-9]+),([0-9]+)" _ ${uibase_version})
22+
string(REGEX MATCH "#define VER_FILEVERSION[ \t]*([0-9]+)[.]([0-9]+)[.]([0-9]+)" _ ${uibase_version})
2323
set(uibase_version_major ${CMAKE_MATCH_1})
2424
set(uibase_version_minor ${CMAKE_MATCH_2})
2525
set(uibase_version_patch ${CMAKE_MATCH_3})

0 commit comments

Comments
 (0)