Skip to content
Snippets Groups Projects
Commit 4d73fb26 authored by Julien Malik's avatar Julien Malik
Browse files

COMP: remove cmake warning on policy CMP0020

parent 58284d31
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,12 @@ find_package( OpenGL REQUIRED )
#----------------------------------------------------------------------------
# Qt4
if(CMAKE_VERSION VERSION_GREATER 2.8.11)
# Disable automatic linking to qtmain on windows
# as in previous versions of cmake
cmake_policy(SET CMP0020 OLD)
endif()
set(QT_USE_IMPORTED_TARGETS ON)
find_package( Qt4 REQUIRED QtCore QtGui QtOpenGL QtMain QtSql QtXml )
include( ${QT_USE_FILE} )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment