diff options
author | Darryl Pogue <darryl@dpogue.ca> | 2023-02-18 07:22:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 07:22:27 (GMT) |
commit | fe5b7ef71e60072283d57e0417776d05eb4b3e7f (patch) | |
tree | c63b3530fde6c37faa85dd30efacb46cb6047924 /googletest | |
parent | 7a7231c442484be389fdf01594310349ca0e42a8 (diff) | |
download | googletest-fe5b7ef71e60072283d57e0417776d05eb4b3e7f.zip googletest-fe5b7ef71e60072283d57e0417776d05eb4b3e7f.tar.gz googletest-fe5b7ef71e60072283d57e0417776d05eb4b3e7f.tar.bz2 |
Set CMP0069 policy to avoid warningsrefs/pull/4157/head
When googletest and googlemock are included as a git submodule and referenced
as part of an existing CMake project, multiple warnings are printed out due to
not setting a value for the CMP0069 policy.
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/cmake/internal_utils.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake index 0438bef..7b9f0b7 100644 --- a/googletest/cmake/internal_utils.cmake +++ b/googletest/cmake/internal_utils.cmake @@ -16,6 +16,10 @@ if (POLICY CMP0054) cmake_policy(SET CMP0054 NEW) endif (POLICY CMP0054) +if (POLICY CMP0069) + cmake_policy(SET CMP0069 NEW) +endif (POLICY CMP0069) + # Tweaks CMake's default compiler/linker settings to suit Google Test's needs. # # This must be a macro(), as inside a function string() can only |