PLATFORM="aix15" CC="xlc" CXX="xlC" # Write entries into the cache file before building cmake. write_cache() { cat > CMakeCache.txt <<EOF BUILD_TESTING:BOOL=OFF CMAKE_EXE_LINKER_FLAGS:STRING=-bstatic CMAKE_SKIP_RPATH:BOOL=1 EOF }