From ca947a4afacddc5016c768653342085d6d5d3119 Mon Sep 17 00:00:00 2001 From: Anton Komlev Date: Thu, 14 Apr 2022 15:22:11 +0100 Subject: [PATCH] Fix Windows build host detection Signed-off-by: Anton Komlev --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f31794df6e..0fccd3d1bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ option(ENABLE_PROGRAMS "Build mbed TLS programs." ON) option(UNSAFE_BUILD "Allow unsafe builds. These builds ARE NOT SECURE." OFF) option(MBEDTLS_FATAL_WARNINGS "Compiler warnings treated as errors" ON) -if(WIN32) +if(CMAKE_HOST_WIN32) option(GEN_FILES "Generate the auto-generated files as needed" OFF) else() option(GEN_FILES "Generate the auto-generated files as needed" ON)