Skip to content

Instantly share code, notes, and snippets.

@johntfoster
Last active July 12, 2016 00:31
Show Gist options
  • Save johntfoster/1ea5034fa1725bfda70b to your computer and use it in GitHub Desktop.
Save johntfoster/1ea5034fa1725bfda70b to your computer and use it in GitHub Desktop.
CMake build script for NetCDF on Mac OSX with Clang compiler
#!/usr/bin/env bash
cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_C_COMPILER:FILEPATH=/usr/local/bin/mpicc \
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local/netcdf \
-DCMAKE_INSTALL_NAME_DIR:PATH=/usr/local/netcdf/lib \
-DCMAKE_MACOSX_RPATH:BOOL=OFF \
-DENABLE_PARALLEL:BOOL=ON \
..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment