From 33425de12802407d2587efdd9534ec67360a0cba Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Wed, 14 Mar 2018 16:44:22 +0000 Subject: [PATCH] Correct check for WIN32 in cmake files for programs Condition was checking for Visual Studio, not use of WIN32 Signed-off-by: Simon Butcher --- programs/pkey/CMakeLists.txt | 8 ++++++-- programs/random/CMakeLists.txt | 8 ++++++-- programs/ssl/CMakeLists.txt | 4 ++-- programs/test/CMakeLists.txt | 4 ++-- programs/x509/CMakeLists.txt | 5 +++-- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/programs/pkey/CMakeLists.txt b/programs/pkey/CMakeLists.txt index 81f4311c5..b95a330a0 100644 --- a/programs/pkey/CMakeLists.txt +++ b/programs/pkey/CMakeLists.txt @@ -1,6 +1,10 @@ -if(MSVC) +set(libs + mbedtls +) + +if(WIN32) set(libs ${libs} bcrypt) -endif() +endif(WIN32) set(executables_mbedtls dh_client diff --git a/programs/random/CMakeLists.txt b/programs/random/CMakeLists.txt index e78ce06b5..20fe7e1f4 100644 --- a/programs/random/CMakeLists.txt +++ b/programs/random/CMakeLists.txt @@ -1,6 +1,10 @@ -if(MSVC) +set(libs + mbedtls +) + +if(WIN32) set(libs ${libs} bcrypt) -endif() +endif(WIN32) set(executables gen_entropy diff --git a/programs/ssl/CMakeLists.txt b/programs/ssl/CMakeLists.txt index 9871952f2..cfa9a0f92 100644 --- a/programs/ssl/CMakeLists.txt +++ b/programs/ssl/CMakeLists.txt @@ -5,9 +5,9 @@ set(libs ${mbedtls_target} ) -if(MSVC) +if(WIN32) set(libs ${libs} bcrypt) -endif() +endif(WIN32) set(executables dtls_client diff --git a/programs/test/CMakeLists.txt b/programs/test/CMakeLists.txt index 1853d7ff8..24829c719 100644 --- a/programs/test/CMakeLists.txt +++ b/programs/test/CMakeLists.txt @@ -2,9 +2,9 @@ set(libs ${mbedtls_target} ) -if(MSVC) +if(WIN32) set(libs ${libs} bcrypt) -endif() +endif(WIN32) set(executables_libs query_included_headers diff --git a/programs/x509/CMakeLists.txt b/programs/x509/CMakeLists.txt index 30d272da9..f1a4a5afa 100644 --- a/programs/x509/CMakeLists.txt +++ b/programs/x509/CMakeLists.txt @@ -1,9 +1,10 @@ set(libs ${mbedx509_target} ) -if(MSVC) + +if(WIN32) set(libs ${libs} bcrypt) -endif() +endif(WIN32) set(executables cert_app