summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-10 01:08:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-10 01:50:50 +0100
commit0e2909b8c7dc4ab1cf30a5881ae127c2417eed62 (patch)
treea981ad4033e96770be14400ed1f2abb02e036a60
parentb600e54dc76254b7e431a1e50cff6707aa2d3d3e (diff)
cmake: fix warning with new version
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
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)