cmake: check that policy CMP0020 can be applied
This commit is contained in:
parent
50f2bef268
commit
0634f4087b
@ -96,7 +96,9 @@ if(BUILD_WITH_QT_SUPPORT)
|
||||
include(${QT_USE_FILE})
|
||||
add_definitions(${QT_DEFINITIONS})
|
||||
else()
|
||||
cmake_policy(SET CMP0020 NEW)
|
||||
if ("${CMAKE_VERSION}" VERSION_GREATER 2.8.11)
|
||||
cmake_policy(SET CMP0020 NEW)
|
||||
endif()
|
||||
find_package(Qt5Core REQUIRED)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user