On macOS, copy libngspice dylibs and symlinks
Now that ngspice creates soversion'ed libraries, we need to tweak how we copy the dylibs around. This is meant to address https://gitlab.com/kicad/code/kicad/-/issues/9143.
This commit is contained in:
parent
1f19c41c29
commit
ec10b12c6a
|
@ -471,10 +471,12 @@ if( APPLE )
|
|||
|
||||
if( KICAD_SPICE )
|
||||
# bundle libngspice and codemodels
|
||||
get_filename_component( REAL_LIBNGSPICE ${NGSPICE_LIBRARY} REALPATH )
|
||||
get_filename_component( LIBNGSPICE_PATH ${REAL_LIBNGSPICE} DIRECTORY )
|
||||
install( FILES "${REAL_LIBNGSPICE}"
|
||||
DESTINATION "${OSX_BUNDLE_INSTALL_PLUGIN_DIR}/sim" )
|
||||
get_filename_component( ABS_LIBNGSPICE ${NGSPICE_LIBRARY} ABSOLUTE )
|
||||
get_filename_component( LIBNGSPICE_PATH ${ABS_LIBNGSPICE} DIRECTORY )
|
||||
|
||||
install( DIRECTORY "${LIBNGSPICE_PATH}/"
|
||||
DESTINATION "${OSX_BUNDLE_INSTALL_PLUGIN_DIR}/sim"
|
||||
FILES_MATCHING PATTERN "*.dylib")
|
||||
install( DIRECTORY "${LIBNGSPICE_PATH}/ngspice"
|
||||
DESTINATION "${OSX_BUNDLE_INSTALL_PLUGIN_DIR}/sim" )
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue