diff options
Diffstat (limited to 'contrib/libjpeg-turbo/P00-darwin-applesi-cross.patch')
-rw-r--r-- | contrib/libjpeg-turbo/P00-darwin-applesi-cross.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/libjpeg-turbo/P00-darwin-applesi-cross.patch b/contrib/libjpeg-turbo/P00-darwin-applesi-cross.patch new file mode 100644 index 000000000..229d264e4 --- /dev/null +++ b/contrib/libjpeg-turbo/P00-darwin-applesi-cross.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4e2d5bd..fecd54a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,6 +4,9 @@ if(CMAKE_EXECUTABLE_SUFFIX) + set(CMAKE_EXECUTABLE_SUFFIX_TMP ${CMAKE_EXECUTABLE_SUFFIX}) + endif() + ++# Something overwrite CMAKE_SYSTEM_PROCESSOR is we try to read it later ++string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} CMAKE_SYSTEM_PROCESSOR_LC) ++ + project(libjpeg-turbo C) + set(VERSION 2.0.4) + string(REPLACE "." ";" VERSION_TRIPLET ${VERSION}) +@@ -40,7 +43,6 @@ message(STATUS "VERSION = ${VERSION}, BUILD = ${BUILD}") + + # 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) + if(CMAKE_SYSTEM_PROCESSOR_LC MATCHES "x86_64" OR + CMAKE_SYSTEM_PROCESSOR_LC MATCHES "amd64" OR + CMAKE_SYSTEM_PROCESSOR_LC MATCHES "i[0-9]86" OR |