set(CMAKE_C_COMPILER "clang") set(CMAKE_CXX_COMPILER "clang++") set(CMAKE_C_COMPILER_TARGET "x86_64-apple-darwin") set(CMAKE_CXX_COMPILER_TARGET "x86_64-apple-darwin") set(CMAKE_SYSTEM_NAME "Darwin") set(CMAKE_SYSTEM_VERSION ${CMAKE_HOST_SYSTEM_VERSION}) set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "")