Setting CMP0054 policy to NEW. This allows to use the string "SHARED" without interpreting it as a variable.

This commit is contained in:
Matthias Walter 2019-06-12 23:50:01 +02:00
parent af4c2cb098
commit e580d99193

View File

@ -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