File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -231,9 +231,9 @@ def num_available_cpu_cores(ram_per_build_process_in_gb):
231231def read_version_from_cmakelists (cmake_file ):
232232 """Read version information
233233 """
234- major = re .findall ("set\(CPACK_PACKAGE_VERSION_MAJOR.*\" (.*)\" " , open (cmake_file ).read ())[0 ]
235- minor = re .findall ("set\(CPACK_PACKAGE_VERSION_MINOR.*\" (.*)\" " , open (cmake_file ).read ())[0 ]
236- patch = re .findall ("set\(CPACK_PACKAGE_VERSION_PATCH.*\" (.*)\" " , open (cmake_file ).read ())[0 ]
234+ major = re .findall ("set\\ (CPACK_PACKAGE_VERSION_MAJOR.*\" (.*)\" " , open (cmake_file ).read ())[0 ]
235+ minor = re .findall ("set\\ (CPACK_PACKAGE_VERSION_MINOR.*\" (.*)\" " , open (cmake_file ).read ())[0 ]
236+ patch = re .findall ("set\\ (CPACK_PACKAGE_VERSION_PATCH.*\" (.*)\" " , open (cmake_file ).read ())[0 ]
237237 return major + '.' + minor + '.' + patch
238238
239239def read_entire_file (fname ):
You can’t perform that action at this time.
0 commit comments