Skip to content

Commit

Permalink
Redo of 3ce27d6, hard-link to Mac embedded app bundle binary
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Oct 25, 2012
1 parent b942bf1 commit 4ed1a66
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Expand Up @@ -626,11 +626,11 @@ IF (APPLE)

# make hard link to embedded app bundle binary (symlink won't work)
# allows QGIS to be run directly from build directory
IF (EXISTS "${CMAKE_BINARY_DIR}/output/bin/QGIS.app/Contents/MacOS/QGIS")
EXECUTE_PROCESS(COMMAND /bin/ln -f
"${CMAKE_BINARY_DIR}/output/bin/QGIS.app/Contents/MacOS/QGIS"
"${CMAKE_BINARY_DIR}/output/bin/QGIS")
ENDIF ()
ADD_CUSTOM_TARGET(mac_hardlink ALL
COMMAND /bin/ln -f QGIS.app/Contents/MacOS/QGIS QGIS
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/output/bin"
DEPENDS QGIS
)
ENDIF (APPLE)

# manual page - makes sense only on unix systems
Expand Down

0 comments on commit 4ed1a66

Please sign in to comment.