Check MSVC_RUNTIME only if MSVC is defined

On MinGW, WIN32 is set but not MSVC
This commit is contained in:
Peter Åstrand (astrand) 2019-01-09 10:01:44 +01:00
parent 6619de070a
commit ea35e2387d

View File

@ -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