Skip to content

Commit 2d1cd6e

Browse files
committed
Set cmake policy CMP0069
This ensures that LTO works as expected whenever the main project has it enabled.
1 parent 9406a60 commit 2d1cd6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ if (POLICY CMP0077)
1111
cmake_policy(SET CMP0077 NEW)
1212
endif (POLICY CMP0077)
1313

14+
if (POLICY CMP0069)
15+
cmake_policy(SET CMP0069 NEW)
16+
endif (POLICY CMP0069)
17+
1418
project(googletest-distribution)
1519
set(GOOGLETEST_VERSION 1.11.0)
1620

0 commit comments

Comments
 (0)