# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/libjpeg-turbo/hotfix-cpu-target.patch # Copyright (C) 2023 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Fix cmake cpu detection. - NoTag --- libjpeg-turbo-2.1.4/CMakeLists.txt.vanilla 2023-04-24 17:09:08.517758745 +0200 +++ libjpeg-turbo-2.1.4/CMakeLists.txt 2023-04-24 17:09:45.508756808 +0200 @@ -55,6 +55,9 @@ include(cmakescripts/PackageInfo.cmake) +# allow us to override the arch with a flag because it complains on auto-detect +option(CMAKE_SYSTEM_PROCESSOR "Cpu target architecture override" "foobar") + # Detect CPU type and whether we're building 64-bit or 32-bit code math(EXPR BITS "${CMAKE_SIZEOF_VOID_P} * 8") string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} CMAKE_SYSTEM_PROCESSOR_LC)