Skip to content

Commit

Permalink
Only add app bundle icons on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
bjeurissen committed Oct 27, 2023
1 parent 15bb65f commit 52f8769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function(add_cmd CMD_SRC IS_GUI)
$<IF:$<BOOL:${IS_GUI}>,mrtrix::gui,mrtrix::headless>
mrtrix::exec-version-lib
)
if (IS_GUI)
if (IS_GUI AND (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin"))
set(mrtrix_icon_macos "${CMAKE_SOURCE_DIR}/icons/macos/${CMD_NAME}.icns")
set_source_files_properties(${mrtrix_icon_macos} PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources"
Expand Down

0 comments on commit 52f8769

Please sign in to comment.