PLATFORM="darwin" CC="cc" CXX="c++" # Write entries into the cache file before building cmake. write_cache() { write_standard_cache cat >> CMakeCache.txt <<EOF CURSES_LIBRARY:FILEPATH=/Users/kitware/staticCurses/libncurses.a EOF }