mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-04-24 16:15:47 +02:00
macOS: Fix vfs suffix plugin paths #7090
This commit is contained in:
parent
d496aa5933
commit
32c60c2f5d
@ -105,7 +105,13 @@ if(WIN32)
|
||||
set(DATADIR "share")
|
||||
endif(WIN32)
|
||||
set(SHAREDIR ${DATADIR})
|
||||
set(PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/${APPLICATION_SHORTNAME}/plugins" CACHE STRING "Extra path to look for Qt plugins like for VFS. May be relative to binary.")
|
||||
|
||||
if (NOT APPLE)
|
||||
set(PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/${APPLICATION_SHORTNAME}/plugins" CACHE STRING "Extra path to look for Qt plugins like for VFS. May be relative to binary.")
|
||||
else()
|
||||
# Inside the .app bundle
|
||||
set(PLUGINDIR "../PlugIns" CACHE STRING "Extra path to look for Qt plugins like for VFS. May be relative to binary.")
|
||||
endif()
|
||||
|
||||
#####
|
||||
## handle BUILD_OWNCLOUD_OSX_BUNDLE
|
||||
|
@ -13,8 +13,22 @@ set_target_properties("${synclib_NAME}_vfs_suffix" PROPERTIES
|
||||
AUTOMOC TRUE
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
# for being loadable when client run from build dir
|
||||
set(vfs_buildoutputdir "${BIN_OUTPUT_DIRECTORY}/${OWNCLOUD_OSX_BUNDLE}/Contents/PlugIns/")
|
||||
set_target_properties("${synclib_NAME}_vfs_suffix"
|
||||
PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY ${vfs_buildoutputdir}
|
||||
RUNTIME_OUTPUT_DIRECTORY ${vfs_buildoutputdir}
|
||||
)
|
||||
# For being lodable when client run from install dir (after make macdeployqt)
|
||||
set(vfs_installdir "${LIB_INSTALL_DIR}/../PlugIns")
|
||||
else()
|
||||
set(vfs_installdir "${PLUGINDIR}")
|
||||
endif()
|
||||
|
||||
INSTALL(TARGETS "${synclib_NAME}_vfs_suffix"
|
||||
LIBRARY DESTINATION "${PLUGINDIR}"
|
||||
RUNTIME DESTINATION "${PLUGINDIR}"
|
||||
LIBRARY DESTINATION "${vfs_installdir}"
|
||||
RUNTIME DESTINATION "${vfs_installdir}"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user