DigitalInBlue / Celero

C++ Benchmark Authoring Library/Framework
Other
824 stars 95 forks source link

Add a guard around CMake policy setting #73

Closed taketwo closed 8 years ago

taketwo commented 8 years ago

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.

DigitalInBlue commented 8 years ago

This change is good, but please do the pull request against the "develop" branch instead of the "master".

taketwo commented 8 years ago

See #75.