From 524760a5248760307e99b396e2d4c9f7e4f74563 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 15 Jun 2015 07:40:02 +0200 Subject: cmake: nix stderr spam on older version --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 55f715b6..7bbdb26c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,9 @@ project(opentrack) cmake_minimum_required(VERSION 2.8.11) cmake_policy(SET CMP0020 NEW) -cmake_policy(SET CMP0058 OLD) +if(POLICY CMP0058) + cmake_policy(SET CMP0058 OLD) +endif() include(CMakeParseArguments) -- cgit v1.2.3