summaryrefslogtreecommitdiffstats
path: root/lib/mbedtls.cmake
blob: 2bf45fa236cd7d2794b9d7634d8395b5b6d2b388 (plain) (blame)
1
2
3
4
5
6
7
8
9
10

# This script includes PolarSSL, if not already included.
# It is needed for when multiple projects reference PolarSSL.

if(NOT TARGET mbedtls)
	message("including mbedtls")
	set(ENABLE_TESTING OFF CACHE BOOL "Disable tests")
	set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable programs")
	add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/mbedtls/ ${CMAKE_CURRENT_BINARY_DIR}/lib/mbedtls EXCLUDE_FROM_ALL)
endif()