set cmake policy CMP0012

gtest config file on ubuntu 22.04 contains an if(ON) which
warns. set the policy to NEW to avoid warning
This commit is contained in:
Arne Morten Kvarving
2022-09-13 11:51:04 +02:00
parent d1c4915e59
commit cd60e90fca

View File

@@ -1,3 +1,6 @@
# Shipped cmake modules for gtest relies on policy to avoid warnings
cmake_policy(SET CMP0012 NEW)
find_package(GTest QUIET)
if(NOT TestLib_FOUND)
if(GTest_FOUND)