diff options
Diffstat (limited to 'cmake/opentrack-load-user-settings.cmake')
-rw-r--r-- | cmake/opentrack-load-user-settings.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/opentrack-load-user-settings.cmake b/cmake/opentrack-load-user-settings.cmake index ede46d7c..062a7fd4 100644 --- a/cmake/opentrack-load-user-settings.cmake +++ b/cmake/opentrack-load-user-settings.cmake @@ -11,7 +11,12 @@ endif() if(WIN32) set(__sdk_os "windows") else() - set(__sdk_os "$ENV{OSTYPE}") + string(REGEX MATCH "^Linux (.+)-Microsoft\$" __sdk_os_match "${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_VERSION}") + if(__sdk_os_match) + set(__sdk_os "Windows-WSL") + else() + set(__sdk_os "${CMAKE_SYSTEM_NAME}") + endif() endif() include(CMakeDetermineCCompiler) |