mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
cmake: Fix make install on win32 platform.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
ba2963b388
commit
0c3becfdb6
3 changed files with 17 additions and 9 deletions
|
@ -28,8 +28,6 @@ include(DefineOptions.cmake)
|
|||
include(CPackConfig.cmake)
|
||||
|
||||
include(DefineInstallationPaths)
|
||||
# install .dlls to bin/
|
||||
set(BIN_INSTALL_DIR "bin" CACHE PATH "-")
|
||||
|
||||
# disallow in-source build
|
||||
include(MacroEnsureOutOfSourceBuild)
|
||||
|
|
|
@ -103,5 +103,8 @@ if (WIN32)
|
|||
set(ICON_INSTALL_DIR "." CACHE PATH "-")
|
||||
set(SOUND_INSTALL_DIR "." CACHE PATH "-")
|
||||
set(LOCALE_INSTALL_DIR "lang" CACHE PATH "-")
|
||||
set(SYSCONF_INSTALL_DIR "." CACHE PATH "-")
|
||||
set(MAN_INSTALL_DIR "." CACHE PATH "-")
|
||||
set(SHARE_INSTALL_PREFIX "." CACHE PATH "-")
|
||||
endif (WIN32)
|
||||
|
||||
|
|
|
@ -19,16 +19,23 @@ add_custom_target(userguide
|
|||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
install(
|
||||
if (UNIX)
|
||||
install(
|
||||
FILES
|
||||
csync.1
|
||||
DESTINATION
|
||||
${MAN_INSTALL_DIR}/man1
|
||||
)
|
||||
)
|
||||
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc/csync)
|
||||
endif(UNIX)
|
||||
|
||||
if (WIN32)
|
||||
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc)
|
||||
endif (WIN32)
|
||||
|
||||
install(
|
||||
DIRECTORY
|
||||
userguide
|
||||
DESTINATION
|
||||
${SHARE_INSTALL_PREFIX}/doc/csync
|
||||
${DOC_INSTALL_PATH}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue