From a717791278511ca5cf9a7f204378fbdf5213cd35 Mon Sep 17 00:00:00 2001 From: DerKleinePunk Date: Sun, 25 Feb 2024 21:13:09 +0100 Subject: [PATCH] Error when SDk not found --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8bd5dad..11281f5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,6 +21,10 @@ endif() MESSAGE(STATUS "Dart SDK ${DART_DIR}") +if(NOT EXISTS "${DART_DIR}/runtime/include/dart_api.h") +MESSAGE(FATAL_ERROR "Missing Dart SDK or not found") +endif() + find_library(LIB_DART_DEBUG NAMES "${LIB_PREFIX}dart" HINTS "${DART_DIR}/out/DebugX64/obj/runtime/bin" "${DART_DIR}/xcodebuild/ReleaseX64/obj/runtime/bin"