OSX Build Flags

--CASA Developer--

 

Prerequisites:

You must have the appropriate ports installed and have them included in your path

export PATH=/opt/casa/02/libexec/qt4/bin:/opt/casa/02/bin:$PATH

 

Flags when using third party packages from /opt/casa/02

 

Casacore

 

cmake -DCASA_BUILD=1 -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/02/bin/gfortran-mp-5 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DPYTHON_LIBRARY=/opt/casa/02/lib/libpython2.7.dylib -DCMAKE_INSTALL_PREFIX=../../darwin -DBUILD_PYTHON=1 ..

 

Code

 

cmake -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/02/bin/gfortran-mp-5 -DLLVMCOMPILER=1 -DREADLINE_ROOT_DIR=/opt/casa/02 -Darch=darwin -DCMAKE_BUILD_TYPE=Release -DINTERACTIVE_ITERATION=1 -Dpgplot_ext=_nox -DCMAKE_INSTALL_PREFIX=../../darwin ..

 

Gcwrap

 

cmake -DCXX11=1 -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_Fortran_COMPILER=/opt/casa/02/bin/gfortran-mp-5 -DLLVMCOMPILER=1 -DREADLINE_ROOT_DIR=/opt/casa/02 -Darch=darwin -DCMAKE_BUILD_TYPE=Release -DINTERACTIVE_ITERATION=1 -Dpgplot_ext=_nox -DCMAKE_INSTALL_PREFIX=../../darwin ..