1 2 3 4 5 6 7 8 9
#!/bin/sh export NETCDF_ROOT="/opt/local" export DDCLIENT_ROOT="/opt/local" cmake -E make_directory build cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/local .. cmake --build build sudo make -C build install VERBOSE=1