diff --git a/src/Editor/CMakeLists.txt b/src/Editor/CMakeLists.txt index 0fd3e387..98962356 100644 --- a/src/Editor/CMakeLists.txt +++ b/src/Editor/CMakeLists.txt @@ -182,8 +182,11 @@ elseif (APPLE) endif() # run macdeployqt to gather necessary qt libraries and plugins - add_custom_command(TARGET pwe_editor POST_BUILD COMMAND ${MACDEPLOYQT_PROGRAM} ARGS - $/../..) + option(USE_MACDEPLOYQT "Run macdeployqt on build" OFF) + if(USE_MACDEPLOYQT) + add_custom_command(TARGET pwe_editor POST_BUILD COMMAND ${MACDEPLOYQT_PROGRAM} ARGS + $/../..) + endif() # Install targets for CPack distribution install(TARGETS pwe_editor BUNDLE DESTINATION ".")