Explorar o código

[macOS] ignore ad-hoc codesigning for Intel builds

Andrey Filipenkov hai 10 meses
pai
achega
249c6d4d09
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      osx/CMakeLists.txt

+ 5 - 0
osx/CMakeLists.txt

@@ -41,6 +41,11 @@ if(APPLE_MACOS)
 	vcmi_install_conan_deps("${bundleContentsDir}")
 
 	# perform ad-hoc codesigning
+	# Intel Macs don't need it
+	if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
+		return()
+	endif()
+
 	set(executablesToSign vcmiserver)
 	if(ENABLE_EDITOR)
 		list(APPEND executablesToSign vcmieditor)