Skip to content

Commit

Permalink
Set cmake policy CMP0069
Browse files Browse the repository at this point in the history
This ensures that LTO works as expected whenever the main project
has it enabled.
  • Loading branch information
Krzmbrzl committed Jul 18, 2022
1 parent 9406a60 commit 2d1cd6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 2d1cd6e

Please sign in to comment.