Skip to content

Commit

Permalink
Error when SDk not found
Browse files Browse the repository at this point in the history
  • Loading branch information
DerKleinePunk committed Feb 25, 2024
1 parent fc335ea commit a717791
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a717791

Please sign in to comment.