Set cmake policy CMP0069

This ensures that LTO works as expected whenever the main project
has it enabled.
This commit is contained in:
Robert Adam
2022-07-18 07:36:40 +02:00
parent 9406a60c78
commit 2d1cd6ee27
+4
View File
@@ -11,6 +11,10 @@ if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif (POLICY CMP0077)
if (POLICY CMP0069)
cmake_policy(SET CMP0069 NEW)
endif (POLICY CMP0069)
project(googletest-distribution)
set(GOOGLETEST_VERSION 1.11.0)