Update CMakeLists.txt
just have to provide OPENSSL_ROOT_DIR to cmake
This commit is contained in:
		
				
					committed by
					
						
						Benjamin Sergeant
					
				
			
			
				
	
			
			
			
						parent
						
							4789e190a0
						
					
				
				
					commit
					789e620451
				
			@@ -180,10 +180,8 @@ if (USE_TLS)
 | 
				
			|||||||
      # set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} /opt/local/include/openssl-1.0)
 | 
					      # set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} /opt/local/include/openssl-1.0)
 | 
				
			||||||
    endif()
 | 
					    endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # This OPENSSL_FOUND check is to help find a cmake manually configured OpenSSL
 | 
					    # Use OPENSSL_ROOT_DIR CMake variable if you need to use your own openssl
 | 
				
			||||||
    if (NOT OPENSSL_FOUND)
 | 
					 | 
				
			||||||
    find_package(OpenSSL REQUIRED) 
 | 
					    find_package(OpenSSL REQUIRED) 
 | 
				
			||||||
    endif()
 | 
					 | 
				
			||||||
    message(STATUS "OpenSSL: " ${OPENSSL_VERSION})
 | 
					    message(STATUS "OpenSSL: " ${OPENSSL_VERSION})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    add_definitions(${OPENSSL_DEFINITIONS})
 | 
					    add_definitions(${OPENSSL_DEFINITIONS})
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user