25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index fe507e9ec25c..91f45a301304 100644
|
|
--- CMakeLists.txt
|
|
+++ CMakeLists.txt
|
|
@@ -19,11 +19,15 @@ SET(WITH_BUNDLED_SSL_DEFAULT "ON")
|
|
IF ((NOT UNIX) OR CYGWIN)
|
|
SET(WITH_BUNDLED_SSL_DEFAULT "OFF")
|
|
ENDIF ((NOT UNIX) OR CYGWIN)
|
|
-STRING(REGEX MATCH "^(amd64|AMD64|x86_64|x86||i[3456]86)$" PROC_MATCH ${CMAKE_SYSTEM_PROCESSOR})
|
|
-IF (NOT PROC_MATCH)
|
|
- MESSAGE("target processor ${CMAKE_SYSTEM_PROCESSOR} is not x86")
|
|
+IF (NOT ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "")
|
|
+ STRING(REGEX MATCH "^(amd64|AMD64|x86_64|x86||i[3456]86)$" PROC_MATCH ${CMAKE_SYSTEM_PROCESSOR})
|
|
+ IF (NOT PROC_MATCH)
|
|
+ MESSAGE("target processor ${CMAKE_SYSTEM_PROCESSOR} is not x86")
|
|
+ SET(WITH_BUNDLED_SSL_DEFAULT "OFF")
|
|
+ ENDIF (NOT PROC_MATCH)
|
|
+ELSE ()
|
|
SET(WITH_BUNDLED_SSL_DEFAULT "OFF")
|
|
-ENDIF (NOT PROC_MATCH)
|
|
+ENDIF ()
|
|
IF (OPENSSL_FOUND AND NOT (OPENSSL_VERSION VERSION_LESS "1.0.2"))
|
|
SET(WITH_BUNDLED_SSL_DEFAULT "OFF")
|
|
ENDIF (OPENSSL_FOUND AND NOT (OPENSSL_VERSION VERSION_LESS "1.0.2"))
|