From 6fbd5fcdf1b145af2c145c1526fda1f809c8827b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 14 Oct 2017 19:05:06 +0200 Subject: [PATCH] Fix build with cmake < 3.0 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52b0a0a..88afefe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 2.6) -cmake_policy(SET CMP0037 NEW) +if( POLICY CMP0037 ) + cmake_policy(SET CMP0037 NEW) +endif( POLICY CMP0037 ) project(LibVNCServer) include(CheckFunctionExists)