some syncing with FindQt4.cmake from KDE, no functional changes
-the mark_as_advanced() calls for the variables coming from qmake are now in the corresponding section, and not in the section where the include dirs are foudn Alex
This commit is contained in:
parent
f5fe20dc12
commit
e325b1a38a
|
@ -564,6 +564,11 @@ IF (QT4_QMAKE_FOUND)
|
|||
SET(QT_TRANSLATIONS_DIR ${qt_translations_dir} CACHE PATH "The location of the Qt translations" FORCE)
|
||||
ENDIF (QT_LIBRARY_DIR AND NOT QT_TRANSLATIONS_DIR OR QT_QMAKE_CHANGED)
|
||||
|
||||
# Make variables changeble to the advanced user
|
||||
MARK_AS_ADVANCED( QT_LIBRARY_DIR QT_DOC_DIR QT_MKSPECS_DIR
|
||||
QT_PLUGINS_DIR QT_TRANSLATIONS_DIR)
|
||||
|
||||
|
||||
########################################
|
||||
#
|
||||
# Setting the INCLUDE-Variables
|
||||
|
@ -653,6 +658,9 @@ IF (QT4_QMAKE_FOUND)
|
|||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
# Make variables changeble to the advanced user
|
||||
MARK_AS_ADVANCED( QT_INCLUDE_DIR )
|
||||
|
||||
# Set QT_INCLUDE_DIR by removine "/QtCore" in the string ${QT_QTCORE_INCLUDE_DIR}
|
||||
IF( QT_QTCORE_INCLUDE_DIR )
|
||||
IF (QT_USE_FRAMEWORKS)
|
||||
|
@ -669,10 +677,6 @@ IF (QT4_QMAKE_FOUND)
|
|||
ENDIF(Qt4_FIND_REQUIRED)
|
||||
ENDIF( NOT QT_INCLUDE_DIR)
|
||||
|
||||
# Make variables changeble to the advanced user
|
||||
MARK_AS_ADVANCED( QT_LIBRARY_DIR QT_INCLUDE_DIR QT_DOC_DIR QT_MKSPECS_DIR
|
||||
QT_PLUGINS_DIR QT_TRANSLATIONS_DIR)
|
||||
|
||||
# Set QT_INCLUDES
|
||||
SET( QT_INCLUDES ${QT_MKSPECS_DIR}/default ${QT_INCLUDE_DIR} )
|
||||
|
||||
|
@ -735,8 +739,11 @@ IF (QT4_QMAKE_FOUND)
|
|||
SET(QT_EDITION_DESKTOPLIGHT 1)
|
||||
ENDIF("${QT_EDITION}" MATCHES "DesktopLight")
|
||||
|
||||
|
||||
|
||||
########################################
|
||||
#
|
||||
# Setting the LIBRARY-Variables
|
||||
#
|
||||
########################################
|
||||
|
||||
# find the libraries
|
||||
FOREACH(QT_MODULE ${QT_MODULES})
|
||||
|
|
Loading…
Reference in New Issue