From c0baee8df13dcafb210b6819f155bfbab9b7b28f Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Mon, 2 Aug 2021 15:38:52 +0200 Subject: [PATCH] ENH: Add initial check for existence of libccaosdb --- src/CaosDB.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CaosDB.jl b/src/CaosDB.jl index e065ee2..f9c2557 100644 --- a/src/CaosDB.jl +++ b/src/CaosDB.jl @@ -24,10 +24,15 @@ module CaosDB +using Libdl + """ Chose the name of the library according to the OS you're running. """ library_name = (@static Sys.iswindows() ? "ccaosdb" : "libccaosdb") +if isempty(find_library(library_name)) + @error "Could not find $library_name" +end module Exceptions -- GitLab