mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-03 05:09:39 +08:00

Remove use of CMAKE_SOURCE_DIR in case mbedtls is built from within another CMake project. Define MBEDTLS_DIR to ${CMAKE_CURRENT_SOURCE_DIR} in the main CMakeLists.txt file and refer to that when defining target include paths to enable mbedtls to be built as a sub project. Fixes https://github.com/ARMmbed/mbedtls/issues/2609 Signed-off-by: Ashley Duncan <ashes.man@gmail.com> Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>