fix cmake tls backend option parsing
This commit is contained in:
		@@ -114,18 +114,15 @@ endif()
 | 
				
			|||||||
option(USE_TLS "Enable TLS support" FALSE)
 | 
					option(USE_TLS "Enable TLS support" FALSE)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (USE_TLS)
 | 
					if (USE_TLS)
 | 
				
			||||||
    option(USE_MBED_TLS "Use Mbed TLS" OFF)
 | 
					    # default to securetranport on Apple if nothing is configured
 | 
				
			||||||
    option(USE_OPEN_SSL "Use OpenSSL" OFF)
 | 
					    if (APPLE)
 | 
				
			||||||
    option(USE_SECURE_TRANSPORT "Use Secure Transport" OFF)
 | 
					      if (NOT USE_MBED_TLS AND NOT USE_OPEN_SSL) # unless we want something else
 | 
				
			||||||
 | 
					        set(USE_SECURE_TRANSPORT ON)
 | 
				
			||||||
    # default to OpenSSL on windows if nothing is configured
 | 
					      endif()
 | 
				
			||||||
    if (WIN32 AND NOT USE_MBED_TLS)
 | 
					    else() # default to OpenSSL on all other platforms
 | 
				
			||||||
      option(USE_OPEN_SSL "Use OpenSSL" ON)
 | 
					      if (NOT USE_MBED_TLS) # Unless mbedtls is requested
 | 
				
			||||||
    endif()
 | 
					        set(USE_OPEN_SSL ON)
 | 
				
			||||||
 | 
					      endif()
 | 
				
			||||||
    # default to securetranport on windows if nothing is configured
 | 
					 | 
				
			||||||
    if (APPLE AND NOT USE_OPEN_SSL AND NOT USE_MBED_TLS)
 | 
					 | 
				
			||||||
      option(USE_SECURE_TRANSPORT "Use Secure Transport" ON)
 | 
					 | 
				
			||||||
    endif()
 | 
					    endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (USE_MBED_TLS)
 | 
					    if (USE_MBED_TLS)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user