Modified cmake script for unix