CMP0042 was introduced in 3.0; configuration of the project on earlier versions of CMake fails with "Policy "CMP0042" is not known to this version of CMake" error. This commit adds a test that allows to skip setting this policy if it is not known to CMake.
CMP0042 was introduced in 3.0; configuration of the project on earlier versions of CMake fails with "Policy "CMP0042" is not known to this version of CMake" error. This commit adds a test that allows to skip setting this policy if it is not known to CMake.