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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user