CMake: Enable CMP0074 so that GTest_ROOT is not ignored

This commit is contained in:
Daniel Richard G
2023-10-16 17:56:17 -04:00
parent 2a18ba753b
commit 4e4f035aff

View File

@@ -33,6 +33,11 @@ if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
# Honor the GTest_ROOT variable if specified
if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif (POLICY CMP0074)
# option() honor variables
if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)