summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/opentrack-load-user-settings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/opentrack-load-user-settings.cmake b/cmake/opentrack-load-user-settings.cmake
index 0ce6e9b0..1baf3702 100644
--- a/cmake/opentrack-load-user-settings.cmake
+++ b/cmake/opentrack-load-user-settings.cmake
@@ -1,5 +1,5 @@
include_guard(GLOBAL)
-if(WIN32)
+if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(__sdk_username "$ENV{USERNAME}")
else()
set(__sdk_username "$ENV{USER}")