It was an error with the cmake policy.
Needed to update the minimum required version for cmake to atleast 3.3.
Previously had 2.8.3

2 Likes