From 0e2909b8c7dc4ab1cf30a5881ae127c2417eed62 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 10 Feb 2019 01:08:23 +0100 Subject: cmake: fix warning with new version --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c00735a2..1360fb11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,12 @@ include(opentrack-policy NO_POLICY_SCOPE) project(opentrack) cmake_minimum_required(VERSION 3.10 FATAL_ERROR) +if(POLICY CMP0083) + cmake_policy(SET CMP0083 NEW) + include(CheckPIESupported) + check_pie_supported() +endif() + include(CMakeDetermineCCompiler) include(CMakeDetermineCXXCompiler) include(CMakeParseArguments) -- cgit v1.2.3