mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-11-05 02:46:56 +03:00
Fix install dir for macos
This commit is contained in:
parent
df04b9b0ef
commit
43a9b532ab
@ -155,7 +155,8 @@ add_dependencies(gittyup indexer relauncher)
|
||||
|
||||
install(
|
||||
TARGETS gittyup
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
DESTINATION
|
||||
$<IF:$<PLATFORM_ID:Darwin>,${CONTENTS_DIR},${CMAKE_INSTALL_BINDIR}>
|
||||
COMPONENT ${GITTYUP_NAME})
|
||||
|
||||
if(APPLE)
|
||||
@ -164,7 +165,7 @@ if(APPLE)
|
||||
get_filename_component(RPATH ${QT_FRAMEWORK} DIRECTORY)
|
||||
|
||||
# Fixup relauncher RPATH.
|
||||
set(RELAUNCHER ${GITTYUP_NAME}.app/Contents/MacOS/relauncher)
|
||||
set(RELAUNCHER ${CONTENTS_DIR}/MacOS/relauncher)
|
||||
install(
|
||||
CODE "execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -delete_rpath \"${RPATH}\"
|
||||
@ -181,7 +182,7 @@ execute_process(COMMAND
|
||||
COMPONENT ${GITTYUP_NAME})
|
||||
|
||||
# Fixup indexer RPATH.
|
||||
set(INDEXER ${GITTYUP_NAME}.app/Contents/MacOS/indexer)
|
||||
set(INDEXER ${CONTENTS_DIR}/MacOS/indexer)
|
||||
install(
|
||||
CODE "execute_process(COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -delete_rpath \"${RPATH}\"
|
||||
|
@ -37,6 +37,7 @@ else()
|
||||
|
||||
install(
|
||||
TARGETS indexer
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
DESTINATION
|
||||
$<IF:$<PLATFORM_ID:Darwin>,${CONTENTS_DIR},${CMAKE_INSTALL_BINDIR}>
|
||||
COMPONENT ${GITTYUP_NAME})
|
||||
endif()
|
||||
|
@ -34,6 +34,7 @@ elseif(UNIX)
|
||||
|
||||
install(
|
||||
TARGETS relauncher
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
DESTINATION
|
||||
$<IF:$<PLATFORM_ID:Darwin>,${CONTENTS_DIR},${CMAKE_INSTALL_BINDIR}>
|
||||
COMPONENT ${GITTYUP_NAME})
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user