cmake: fix dev warnings when enabling Qt (set policy cmp0020)

This commit is contained in:
Hugues Delorme 2014-02-04 15:46:37 +01:00
parent bdf97c30e3
commit 50f2bef268

View File

@ -96,6 +96,7 @@ if(BUILD_WITH_QT_SUPPORT)
include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
else()
cmake_policy(SET CMP0020 NEW)
find_package(Qt5Core REQUIRED)
endif()