diff --git a/cmake-proxies/cmake-modules/AudacityDependencies.cmake b/cmake-proxies/cmake-modules/AudacityDependencies.cmake index 6557287ce..8fad83465 100644 --- a/cmake-proxies/cmake-modules/AudacityDependencies.cmake +++ b/cmake-proxies/cmake-modules/AudacityDependencies.cmake @@ -211,9 +211,14 @@ function ( _conan_install build_type ) conan_cmake_autodetect(settings BUILD_TYPE ${build_type}) if( CMAKE_SYSTEM_NAME MATCHES "Darwin" ) + # TODO: Read the target CPU architecture from the CMake option # We have no AppleSilicon support yet list( APPEND settings "arch=x86_64" ) - list (APPEND settings "os.version=${CMAKE_OSX_DEPLOYMENT_TARGET}") + list( APPEND settings "os.version=${CMAKE_OSX_DEPLOYMENT_TARGET}" ) + # This line is required to workaround the conan bug #8025 + # https://github.com/conan-io/conan/issues/8025 + # Without it, libjpeg-turbo will fail to cross-compile on AppleSilicon macs + list( APPEND settings ENV "CONAN_CMAKE_SYSTEM_PROCESSOR=x86_64") endif() if (build_type MATCHES "MinSizeRel|RelWithDebInfo")