Added cmake version check to cmake_policy usage
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14973 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
67fb0b3530
commit
466a4a5d69
@ -730,8 +730,10 @@ IF(OSG_USE_QT AND NOT ANDROID)
|
||||
FIND_PACKAGE(Qt5WebKitWidgets QUIET)
|
||||
|
||||
IF(COMMAND cmake_policy)
|
||||
# Qt5 qt5_use_modules usage was causing "Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties." warnings
|
||||
cmake_policy(SET CMP0043 NEW)
|
||||
IF(${CMAKE_MAJOR_VERSION} GREATER 2)
|
||||
# Qt5 qt5_use_modules usage was causing "Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties." warnings
|
||||
cmake_policy(SET CMP0043 NEW)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user