Fallback to system ngspice library when libngspice is not found in other paths on macOS
This commit is contained in:
parent
2865084ce8
commit
e3a06dca70
|
@ -313,9 +313,10 @@ void NGSPICE::init_dll()
|
|||
break;
|
||||
}
|
||||
}
|
||||
#else /* not __WINDOWS || __WXMAC__ */
|
||||
m_dll.Load( wxDynamicLibrary::CanonicalizeName( "ngspice" ) );
|
||||
#endif
|
||||
|
||||
if( !m_dll.IsLoaded() ) // try also the system libraries
|
||||
#endif /* __WINDOWS || __WXMAC__ */
|
||||
m_dll.Load( wxDynamicLibrary::CanonicalizeName( "ngspice" ) );
|
||||
|
||||
if( !m_dll.IsLoaded() )
|
||||
throw std::runtime_error( "Missing ngspice shared library" );
|
||||
|
|
Loading…
Reference in New Issue