[3.28-rc5] REGEX MATCHALL behaving differently?
also from https://github.com/microsoft/vcpkg/pull/35326.
The libbson:x64-linux build also looks strange. The error is:
CMake Error at build/cmake/LoadVersion.cmake:9 (string):
string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:20 (LoadVersion)
The associated code is:
file(STRINGS ${FILEPATH} VERSION_CONTENTS)
# A list of version components separated by dots and dashes: "1.3.0-dev"
string(REGEX MATCHALL "[^.-]+" VERSION ${VERSION_CONTENTS})
Even if ${FILEPATH} is empty VERSION_CONTENTS should be an empty string and count as the 5th argument to the command. Even when the extra ""
are missing
(If it is not that than probably the problem is somewhere else in the cmake execution)