From 3822241d9929a7b166d672812157cfa852007d96 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 12 Feb 2015 11:27:55 -0800 Subject: [PATCH] Use policy check instead of CMake version check --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bec473e8..6219383f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -if (CMAKE_MAJOR_VERSION GREATER 2 AND CMAKE_MINOR_VERSION GREATER 0) +if (POLICY CMP0054) # Only interpret `if` arguments as variables or keywords when unquoted. cmake_policy(SET CMP0054 NEW) endif ()