浏览代码

[macOS] don't fail if macdeployqt is missing

- it's needed only at install time (when creating dmg)
- ConanCenter binaries don't have it
Andrey Filipenkov 3 年之前
父节点
当前提交
bf897311d9
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      osx/CMakeLists.txt

+ 2 - 3
osx/CMakeLists.txt

@@ -9,9 +9,8 @@ if(APPLE_MACOS)
 		if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL CMAKE_SYSTEM_PROCESSOR)
 		if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL CMAKE_SYSTEM_PROCESSOR)
 			# deploy Qt dylibs with macdeployqt
 			# deploy Qt dylibs with macdeployqt
 			find_program(TOOL_MACDEPLOYQT NAMES macdeployqt PATHS ${qt_base_dir}/bin)
 			find_program(TOOL_MACDEPLOYQT NAMES macdeployqt PATHS ${qt_base_dir}/bin)
-			if(NOT TOOL_MACDEPLOYQT)
-				message(FATAL_ERROR "Could not find macdeployqt")
-			endif()
+		endif()
+		if(TOOL_MACDEPLOYQT)
 			install(CODE "
 			install(CODE "
 				execute_process(COMMAND
 				execute_process(COMMAND
 					\"${TOOL_MACDEPLOYQT}\" \"${bundleDir}\" -verbose=2
 					\"${TOOL_MACDEPLOYQT}\" \"${bundleDir}\" -verbose=2