summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-18 13:41:50 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-03-18 13:41:50 (GMT)
commit758651f124caff93889121c88cb193c3b63df1ba (patch)
tree20120cda572fb46501d571fe1d9829d0270c6216 /Modules/FindQt4.cmake
parentbb260f09272ccb0c933b95791ad47495046ea0cb (diff)
parent4aa10cd6d67c051b3659cd33aee17391e4a8318b (diff)
downloadCMake-758651f124caff93889121c88cb193c3b63df1ba.zip
CMake-758651f124caff93889121c88cb193c3b63df1ba.tar.gz
CMake-758651f124caff93889121c88cb193c3b63df1ba.tar.bz2
Merge topic 'set-QT_MAJOR_VERSION'
4aa10cd FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for Qt4::QtCore
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r--Modules/FindQt4.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index b62e902..6fdc20a 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -1023,6 +1023,12 @@ if (QT_QMAKE_EXECUTABLE AND QTVERSION)
"${QT_MKSPECS_DIR}/default"
${QT_INCLUDE_DIR}
)
+ set_property(TARGET Qt4::QtCore PROPERTY
+ INTERFACE_QT_MAJOR_VERSION 4
+ )
+ set_property(TARGET Qt4::QtCore APPEND PROPERTY
+ COMPATIBLE_INTERFACE_STRING QT_MAJOR_VERSION
+ )
foreach(QT_MODULE ${QT_MODULES})
_QT4_ADJUST_LIB_VARS(${QT_MODULE})