build: match WSL2 kernel name (#12425)
This commit is contained in:
parent
96568d5b07
commit
b807de36d4
|
@ -12,7 +12,7 @@ check_type_size("size_t" SIZEOF_SIZE_T)
|
|||
check_type_size("long long" SIZEOF_LONG_LONG)
|
||||
check_type_size("void *" SIZEOF_VOID_PTR)
|
||||
|
||||
if (CMAKE_HOST_SYSTEM_VERSION MATCHES ".*-Microsoft")
|
||||
if (CMAKE_HOST_SYSTEM_VERSION MATCHES ".*-(Microsoft|microsoft-standard)")
|
||||
# Windows Subsystem for Linux
|
||||
set(HAVE_WSL 1)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue