mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-22 13:20:50 +00:00
Fix incorrect submodule error message in CMake
This commit fixes a condition where the incorrect submodule error message was displayed as we were using the CMAKE_CURRENT_SOURCE_DIR variable instead of MBEDTLS_DIR. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
parent
2ce86b0a1b
commit
e3fa3a4e57
@ -351,7 +351,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Check" AND TEST_CPP)
|
||||
endif()
|
||||
|
||||
if (NOT EXISTS "${MBEDTLS_FRAMEWORK_DIR}/CMakeLists.txt")
|
||||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git/")
|
||||
if (EXISTS "${MBEDTLS_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.")
|
||||
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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user