From ea35e2387dd74867642e199ba70b12adf46bc616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C3=85strand=20=28astrand=29?= Date: Wed, 9 Jan 2019 10:01:44 +0100 Subject: [PATCH] Check MSVC_RUNTIME only if MSVC is defined On MinGW, WIN32 is set but not MSVC --- cmake/FindOpenSSL.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindOpenSSL.cmake b/cmake/FindOpenSSL.cmake index 35af2e50e..11874e085 100644 --- a/cmake/FindOpenSSL.cmake +++ b/cmake/FindOpenSSL.cmake @@ -63,13 +63,13 @@ FIND_PATH(OPENSSL_INCLUDE_DIR include ) -IF(WIN32) +IF(MSVC) if(${MSVC_RUNTIME} STREQUAL "static") set(MSVC_RUNTIME_SUFFIX "MT") else() set(MSVC_RUNTIME_SUFFIX "MD") endif() -ENDIF(WIN32) +ENDIF(MSVC) IF(ANDROID) FIND_LIBRARY(OPENSSL_LIBRARIES