Commit 1b55338f authored by johan's avatar johan

Do not search for mbedtls library when disabled

parent 05decd3e
......@@ -49,10 +49,11 @@ if(MSVC)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(MbedTLS)
if (ENABLE_MBEDTLS AND MBEDTLS_FOUND)
message("Use mbedTLS")
if (ENABLE_MBEDTLS)
find_package(MbedTLS)
if (MBEDTLS_FOUND)
message("Use mbedTLS")
endif()
elseif (ENABLE_POLARSSL)
find_package(PolarSSL)
if (POLARSSL_FOUND)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment