Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4351 from catap/cmake-old-macos
Browse files Browse the repository at this point in the history
Use 64bit build on `CMAKE_SYSTEM_PROCESSOR=i386` on Darwin
  • Loading branch information
martin-frbg authored Dec 5, 2023
2 parents 39bf8ec + 08fde5e commit e3039fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/system_check.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64.*")
set(LOONGARCH64 1)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64.*")
set(RISCV64 1)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*" OR (CMAKE_SYSTEM_NAME MATCHES "Darwin" AND CMAKE_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*"))
if (NOT BINARY)
if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
set(X86_64 1)
Expand Down

0 comments on commit e3039fa

Please sign in to comment.