summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <ske@ableton.com>2016-01-08 14:11:15 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-01-08 13:16:50 +0000
commit9e5cdcdd4b6ad09aa509fa84f15ad540ae8c52b5 (patch)
tree933f17effc8d3f37981df9279e92ad1941fdeb66
parent5c0b7f73aa7d901c41c09450a7fcff182015f7c2 (diff)
Set CMP0056 to NEW only if it exists for the running cmake version
Change-Id: Id3dfaba678f1891adbc31fcd379481ad9271198e Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
-rw-r--r--tests/auto/cmake/test_plugins/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/cmake/test_plugins/CMakeLists.txt b/tests/auto/cmake/test_plugins/CMakeLists.txt
index 9cbfbb657e..a23f9c332c 100644
--- a/tests/auto/cmake/test_plugins/CMakeLists.txt
+++ b/tests/auto/cmake/test_plugins/CMakeLists.txt
@@ -1,7 +1,9 @@
project(test_plugins)
cmake_minimum_required(VERSION 2.8)
-cmake_policy(SET CMP0056 NEW)
+if (POLICY CMP0056)
+ cmake_policy(SET CMP0056 NEW)
+endif()
find_package(Qt5Qml REQUIRED)