diff options
author | Matthias Walter <matthias@matthiaswalter.org> | 2019-06-12 23:50:01 +0200 |
---|---|---|
committer | Matthias Walter <matthias@matthiaswalter.org> | 2019-06-12 23:50:01 +0200 |
commit | e580d99193e30a00a52e5075fce97ab0cd286ac3 (patch) | |
tree | 9b99024b149bf5b13092baa158ea5cacf8cc5b28 | |
parent | af4c2cb098a35f4898c5089335c10ba4bd5a4fce (diff) | |
download | googletest-e580d99193e30a00a52e5075fce97ab0cd286ac3.tar.gz googletest-e580d99193e30a00a52e5075fce97ab0cd286ac3.tar.bz2 googletest-e580d99193e30a00a52e5075fce97ab0cd286ac3.zip |
Setting CMP0054 policy to NEW. This allows to use the string "SHARED" without interpreting it as a variable.
-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 04def60f..2f70f0b0 100644 --- a/googletest/cmake/internal_utils.cmake +++ b/googletest/cmake/internal_utils.cmake @@ -12,6 +12,10 @@ # Test and Google Mock's option() definitions, and thus must be # called *after* the options have been defined. +if (POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif (POLICY CMP0054) + # 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 |