aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGilles Peskine <Gilles.Peskine@arm.com>2024-03-04 16:25:14 +0100
committerGilles Peskine <Gilles.Peskine@arm.com>2024-03-04 17:12:59 +0100
commitf9bbe0de4c97ca532d052106bb471756e55742ae (patch)
tree9826acf116598196f19d4da9277323a5edbf8bf2 /CMakeLists.txt
parent0c3f0e998d584ac4ca01caa398bcf777ee802f5e (diff)
downloadmbedtls-f9bbe0de4c97ca532d052106bb471756e55742ae.zip
mbedtls-f9bbe0de4c97ca532d052106bb471756e55742ae.tar.gz
mbedtls-f9bbe0de4c97ca532d052106bb471756e55742ae.tar.bz2
Show guidance if the framework is not found
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 154c84a..174a99f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -277,6 +277,9 @@ if(LIB_INSTALL_DIR)
set(CMAKE_INSTALL_LIBDIR "${LIB_INSTALL_DIR}")
endif()
+if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/framework/CMakeLists.txt")
+ message(FATAL_ERROR "${CMAKE_CURRENT_SOURCE_DIR}/framework/CMakeLists.txt not found. Run `git submodule update --init` from the source tree to fetch the submodule contents.")
+endif()
add_subdirectory(framework)
add_subdirectory(include)