aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAnton Komlev <anton.komlev@arm.com>2022-04-14 15:22:11 +0100
committerAnton Komlev <anton.komlev@arm.com>2022-04-14 15:22:11 +0100
commitca947a4afacddc5016c768653342085d6d5d3119 (patch)
treeb200afe8b5b67d7c3285ca6a6e184bc294a0fbf8 /CMakeLists.txt
parent473d585abfaaac86e7bd78458dc2a07c1e4f0974 (diff)
downloadmbedtls-ca947a4afacddc5016c768653342085d6d5d3119.zip
mbedtls-ca947a4afacddc5016c768653342085d6d5d3119.tar.gz
mbedtls-ca947a4afacddc5016c768653342085d6d5d3119.tar.bz2
Fix Windows build host detection
Signed-off-by: Anton Komlev <anton.komlev@arm.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f31794d..0fccd3d 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)