@ -397,7 +397,7 @@ if (GUI)
endif()
if (APPLE)
if (APPLE AND GUI)
add_custom_target(appdmg
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}