From fb5739173a61d6167dab24a5f1ff1628779cc76c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Jun 2019 18:43:47 +0200 Subject: cmake: fix cross from linux --- cmake/opentrack-load-user-settings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') 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}") -- cgit v1.2.3