Check MSVC_RUNTIME only if MSVC is defined
On MinGW, WIN32 is set but not MSVC
This commit is contained in:
parent
6619de070a
commit
ea35e2387d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user