Skip to content

Commit 4ed1a66

Browse files
committed
Redo of 3ce27d6, hard-link to Mac embedded app bundle binary
1 parent b942bf1 commit 4ed1a66

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -626,11 +626,11 @@ IF (APPLE)
626626

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

636636
# manual page - makes sense only on unix systems

0 commit comments

Comments
 (0)