Check that the CMAKE_VERSION is 3.0 or greater when setting the CMP0043 policy to NEW. The Ubuntu 14 cmake which is 2.8.12 throws an unknown policy error otherwise.