From 774965188a1012e57730e8f18e095eb837b9d94a Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Thu, 21 Oct 2021 19:45:52 +0100 Subject: [PATCH] Turn GEN_FILES off by default on windows If on windows, turn off GEN_FILES as it does not currently work (for reasons unknown). Note: The WIN32 variable is "True on windows systems, including win64", as one would expect. Signed-off-by: David Horstmann --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0ece2a0e..cd990abe8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,11 @@ 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) -option(GEN_FILES "Generate the auto-generated files as needed" ON) +if(WIN32) + option(GEN_FILES "Generate the auto-generated files as needed" OFF) +else() + option(GEN_FILES "Generate the auto-generated files as needed" ON) +endif() string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}") string(REGEX MATCH "GNU" CMAKE_COMPILER_IS_GNU "${CMAKE_C_COMPILER_ID}")