cmake: OneCoreUap: Use proper dot escape sequence in cmake regex (#7702)
See https://cmake.org/pipermail/cmake/2004-May/005136.html Signed-off-by: Karol Trzcinski <karolx.trzcinski@intel.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
if(NOT DEFINED CMAKE_SYSTEM_VERSION)
|
||||
# Sometimes CMAKE_HOST_SYSTEM_VERSION has form 10.x.y while we need
|
||||
# form 10.x.y.z Adding .0 at the end fixes the issue
|
||||
if(CMAKE_HOST_SYSTEM_VERSION MATCHES "^10\.0\.[0-9]+$")
|
||||
if(CMAKE_HOST_SYSTEM_VERSION MATCHES "^10\\.0\\.[0-9]+$")
|
||||
set(CMAKE_SYSTEM_VERSION "${CMAKE_HOST_SYSTEM_VERSION}.0")
|
||||
else()
|
||||
set(CMAKE_SYSTEM_VERSION "${CMAKE_HOST_SYSTEM_VERSION}")
|
||||
|
||||
Reference in New Issue
Block a user