From b0a68702992d6c42814f5060c0181c2c1534fe07 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Jun 2019 18:46:25 +0200 Subject: cmake: fix host win32 check --- cmake/opentrack-i18n.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake index 7a47ad10..e89f5c42 100644 --- a/cmake/opentrack-i18n.cmake +++ b/cmake/opentrack-i18n.cmake @@ -31,7 +31,7 @@ function(otr_i18n_for_target_directory n) endforeach() # all sorts of problems - if(WIN32) + if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") set(to-null "2>NUL") else() set(to-null "2>/dev/null") -- cgit v1.2.3