Set CMP0056 to NEW only if it exists for the running cmake version

Change-Id: Id3dfaba678f1891adbc31fcd379481ad9271198e
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
Stephen Kelly 2016-01-08 14:11:15 +01:00 committed by Simon Hausmann
parent 5c0b7f73aa
commit 9e5cdcdd4b
1 changed files with 3 additions and 1 deletions

View File

@ -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)