From e3fdd0a9c5f5663116a1b939348fb922faa6aa3d Mon Sep 17 00:00:00 2001 From: Harry Ramsey Date: Mon, 4 Nov 2024 15:14:53 +0000 Subject: [PATCH] Fix undefined variable in CMakeLists.txt This commit replaces an undefined variable ${MBEDTLS_FRAMEWORK_DIR} for ${CMAKE_CURRENT_SOURCE_DIR}. Signed-off-by: Harry Ramsey --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a0e003b24..7a19127a84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -285,9 +285,9 @@ endif() if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/framework/CMakeLists.txt") if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git/") - message(FATAL_ERROR "${MBEDTLS_FRAMEWORK_DIR}/CMakeLists.txt not found (and does appear to be a git checkout). Run `git submodule update --init` from the source tree to fetch the submodule contents.") + message(FATAL_ERROR "${CMAKE_CURRENT_SOURCE_DIR}CMakeLists.txt not found (and does appear to be a git checkout). Run `git submodule update --init` from the source tree to fetch the submodule contents.") else () - message(FATAL_ERROR "${MBEDTLS_FRAMEWORK_DIR}/CMakeLists.txt not found (and does not appear to be a git checkout). Please ensure you have downloaded the right archive from the release page on GitHub.") + message(FATAL_ERROR "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt not found (and does not appear to be a git checkout). Please ensure you have downloaded the right archive from the release page on GitHub.") endif() endif() add_subdirectory(framework)