Skip to content

Commit

Permalink
Fix build for OS X (CMake)
Browse files Browse the repository at this point in the history
(a cherry-pick of commit f73611c from 'master')

Issue #275 (bdwgc).

Having "ppc" in CMAKE_OSX_ARCHITECTURES fails the build on Mac
OS X 10.13, at least.

* CMakeLists.txt [APPLE && $CMAKE_OSX_ARCHITECTURES==""]
(CMAKE_OSX_ARCHITECTURES): Set to "x86_64;i386" (instead of
"ppc;i386;x86_64").
  • Loading branch information
vicroms authored and ivmai committed Jun 27, 2019
1 parent 5a2f71d commit d1cb883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ADD_DEFINITIONS("-D_CRT_SECURE_NO_DEPRECATE

IF(APPLE)
IF("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
SET(CMAKE_OSX_ARCHITECTURES "ppc;i386;x86_64" CACHE STRING "Build architectures for Mac OS X" FORCE)
SET(CMAKE_OSX_ARCHITECTURES "x86_64;i386"
CACHE STRING "Build architectures for Mac OS X" FORCE)
ENDIF()
ENDIF(APPLE)

Expand Down

0 comments on commit d1cb883

Please sign in to comment.