Modify ExternalProject to perform git shallow clone
Created by: jczaja
ExternalProject Add is used to download needed dependencies. Normally git clone downloads whole history of given repo. More recent cmake can perform git clone shallow to checkout only selected revision without whole history. It would be good to investigate such a possibility as it would save some time during building and save disk space when checking out. Problem is that it require recent cmake.