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:
parent
5c0b7f73aa
commit
9e5cdcdd4b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue