diff --git a/CMakeLists.txt b/CMakeLists.txt index 2990218e1..87616bef8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,10 @@ endif() if(POLICY CMP0042) cmake_policy(SET CMP0042 NEW) endif() +# Quoted variables should not be dereferenced +if(POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif() # Use folders for nice tree in Visual Studio and XCode set_property(GLOBAL PROPERTY USE_FOLDERS ON)