changeset 3724:f29a75a3190a

fix for msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Mar 2020 10:47:41 +0100
parents cc6d4edfe8fe
children 8060880d5e66
files Resources/CMake/OpenSslConfigurationStatic-1.1.1.cmake
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/OpenSslConfigurationStatic-1.1.1.cmake	Thu Mar 05 21:13:37 2020 +0100
+++ b/Resources/CMake/OpenSslConfigurationStatic-1.1.1.cmake	Fri Mar 06 10:47:41 2020 +0100
@@ -221,14 +221,9 @@
 
   add_definitions(
     -DOPENSSL_RAND_SEED_OS  # ${OPENSSL_SOURCES_DIR}/crypto/rand/rand_win.c
+    -DOPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
     )
-
-  if (CMAKE_COMPILER_IS_GNUCXX)  # MinGW
-    add_definitions(
-      -DOPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE
-      )
-  endif()
-  
+ 
 elseif ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
   # In order for "crypto/mem_sec.c" to compile on LSB
   add_definitions(