FindQt4: If Qt5 is in CMAKE_PREFIX_PATH, be sure to find Qt4 includes.
This commit is contained in:
parent
161a793781
commit
252bfd3379
|
@ -685,7 +685,14 @@ if (QT_QMAKE_EXECUTABLE AND QTVERSION)
|
||||||
find_path(QT_QTCORE_INCLUDE_DIR QtCore
|
find_path(QT_QTCORE_INCLUDE_DIR QtCore
|
||||||
HINTS ${qt_headers} ${QT_LIBRARY_DIR}
|
HINTS ${qt_headers} ${QT_LIBRARY_DIR}
|
||||||
PATH_SUFFIXES QtCore qt4/QtCore
|
PATH_SUFFIXES QtCore qt4/QtCore
|
||||||
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
if(NOT QT_QTCORE_INCLUDE_DIR)
|
||||||
|
find_path(QT_QTCORE_INCLUDE_DIR QtCore
|
||||||
|
HINTS ${qt_headers} ${QT_LIBRARY_DIR}
|
||||||
|
PATH_SUFFIXES QtCore qt4/QtCore
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Set QT_HEADERS_DIR based on finding QtCore header
|
# Set QT_HEADERS_DIR based on finding QtCore header
|
||||||
if(QT_QTCORE_INCLUDE_DIR)
|
if(QT_QTCORE_INCLUDE_DIR)
|
||||||
|
|
Loading…
Reference in New Issue