diff options
author | Stephen Kelly <ske@ableton.com> | 2016-01-08 14:11:15 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2016-01-08 13:16:50 +0000 |
commit | 9e5cdcdd4b6ad09aa509fa84f15ad540ae8c52b5 (patch) | |
tree | 933f17effc8d3f37981df9279e92ad1941fdeb66 /tests/auto/cmake | |
parent | 5c0b7f73aa7d901c41c09450a7fcff182015f7c2 (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>
Diffstat (limited to 'tests/auto/cmake')
-rw-r--r-- | tests/auto/cmake/test_plugins/CMakeLists.txt | 4 |
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) |