From e392eea1605e59e157e49d9dcdfa982181866165 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 12 Feb 2015 10:12:26 -0800 Subject: [PATCH] Fix CMake warning --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e135949d..bec473e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,8 @@ +if (CMAKE_MAJOR_VERSION GREATER 2 AND CMAKE_MINOR_VERSION GREATER 0) + # Only interpret `if` arguments as variables or keywords when unquoted. + cmake_policy(SET CMP0054 NEW) +endif () + cmake_minimum_required(VERSION 2.6) # Set the default CMAKE_BUILD_TYPE to Release.