summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-06-20 18:43:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-06-20 18:43:47 +0200
commitfb5739173a61d6167dab24a5f1ff1628779cc76c (patch)
tree6ff7e70f38a276c0a214a18d3afb1c79153182ea /cmake
parentdad66f3e04b8404073b5bff19a610a8095be849c (diff)
cmake: fix cross from linux
Diffstat (limited to 'cmake')
-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}")