From 5871910490b796952549f312c75f6b23fadd1541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 9 Jul 2015 09:19:47 +0100 Subject: [PATCH] cmake: testing disabled by default with MSVC Previously testing was enabled only if GCC || Clang, and I though this was a "proxy" for the likelihood of Perl being available. Apparently it was not just that, since MSVC gives me a lot of errors when trying to build tests. Let's fix them later, and disable for now. --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f8340481..1f556f39d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,14 @@ option(USE_PKCS11_HELPER_LIBRARY "Build mbed TLS with the pkcs11-helper library. option(ENABLE_ZLIB_SUPPORT "Build mbed TLS with zlib library." OFF) option(ENABLE_PROGRAMS "Build mbed TLS programs." ON) -option(ENABLE_TESTING "Build mbed TLS tests." ON) + + +# the test suites currently have compile errors with MSVC +if(MSVC) + option(ENABLE_TESTING "Build mbed TLS tests." OFF) +else() + option(ENABLE_TESTING "Build mbed TLS tests." ON) +endif() set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Choose the type of build: None Debug Release Coverage ASan ASanDbg MemSan MemSanDbg Check CheckFull"