diff --git a/CMakeLists.txt b/CMakeLists.txt index 879ca88bd..222c191fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -397,7 +397,7 @@ if (GUI) endif() -if (APPLE) +if (APPLE AND GUI) add_custom_target(appdmg WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}