Fix Windows build host detection
Signed-off-by: Anton Komlev <anton.komlev@arm.com>
This commit is contained in:
parent
473d585abf
commit
ca947a4afa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue