mirror of https://github.com/davisking/dlib.git
Removed exit call on load library failure.
This commit is contained in:
parent
44a62b19d0
commit
e99d47cc7c
|
@ -163,14 +163,7 @@ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/swig.i
|
||||||
}
|
}
|
||||||
|
|
||||||
%pragma(java) jniclasscode=%{
|
%pragma(java) jniclasscode=%{
|
||||||
static {
|
static { System.loadLibrary(\"${output_library_name}\"); }
|
||||||
try {
|
|
||||||
System.loadLibrary(\"${output_library_name}\");
|
|
||||||
} catch (UnsatisfiedLinkError e) {
|
|
||||||
System.err.println(\"Native code library failed to load. \\n\" + e);
|
|
||||||
System.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%include \"swig_api.h\"
|
%include \"swig_api.h\"
|
||||||
|
|
Loading…
Reference in New Issue