wiki:MacNotes

Version 3 (modified by tirons, 3 months ago) (diff)

--

If you are compiling on a Mac you have a couple of options.

Using XCode

If you want to use the standard XCode build tools, Lemma will compile as long as you do not attempt to use OpenMP. This is due to OpenMP not being supported by Apple's Clang compiler. If you elect to go this route, simply install XCode, and then within XCode make sure you have the command line tools installed.

Using HomeBrew

# Install HomeBrew (if necessary) 
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"  
# make sure HomeBrew is up to date 
brew update 
brew upgrade
# install omp and the latest llvm 
brew install libomp 
brew install llvm  
brew install cmake 

At this point you can invoke cmake, but you need to specify the CMAKE_CXX_COMPILER and CMAKE_C_COMPILER to be the variants installed above. CmakeMacOSX

Attachments (1)

Download all attachments as: .zip