diff -ur cmake-2.8.4-orig/Modules/FindQt4.cmake cmake-2.8.4/Modules/FindQt4.cmake
|
|
|
583 | 583 | SET(QT_MKSPECS_DIR NOTFOUND) |
584 | 584 | FIND_PATH(QT_MKSPECS_DIR NAMES qconfig.pri |
585 | 585 | HINTS ${qt_cross_paths} ${qt_mkspecs_dirs} |
586 | | DOC "The location of the Qt mkspecs containing qconfig.pri") |
| 586 | DOC "The location of the Qt mkspecs containing qconfig.pri" |
| 587 | NO_DEFAULT_PATH) |
587 | 588 | ENDIF() |
588 | 589 | |
589 | 590 | IF(EXISTS "${QT_MKSPECS_DIR}/qconfig.pri") |
… |
… |
|
607 | 608 | FIND_LIBRARY(QT_QTCORE_LIBRARY_RELEASE |
608 | 609 | NAMES QtCore${QT_LIBINFIX} QtCore${QT_LIBINFIX}4 |
609 | 610 | HINTS ${QT_LIBRARY_DIR_TMP} |
610 | | NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH |
| 611 | NO_DEFAULT_PATH |
611 | 612 | ) |
612 | 613 | FIND_LIBRARY(QT_QTCORE_LIBRARY_DEBUG |
613 | 614 | NAMES QtCore${QT_LIBINFIX}_debug QtCore${QT_LIBINFIX}d QtCore${QT_LIBINFIX}d4 |
614 | 615 | HINTS ${QT_LIBRARY_DIR_TMP} |
615 | | NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH |
| 616 | NO_DEFAULT_PATH |
616 | 617 | ) |
617 | 618 | |
618 | 619 | # try dropping a hint if trying to use Visual Studio with Qt built by mingw |
… |
… |
|
666 | 667 | HINTS ${qt_headers} |
667 | 668 | ${QT_LIBRARY_DIR}/QtCore.framework/Headers |
668 | 669 | PATH_SUFFIXES QtCore |
| 670 | NO_DEFAULT_PATH |
669 | 671 | ) |
670 | 672 | |
671 | 673 | # Set QT_HEADERS_DIR based on finding QtCore header |
… |
… |
|
714 | 716 | endforeach(qt_cross_path) |
715 | 717 | FIND_PATH(QT_PLUGINS_DIR NAMES accessible imageformats sqldrivers codecs designer |
716 | 718 | HINTS ${qt_cross_paths} ${qt_plugins_dir} |
717 | | DOC "The location of the Qt plugins") |
| 719 | DOC "The location of the Qt plugins" |
| 720 | NO_DEFAULT_PATH) |
718 | 721 | ENDIF (QT_LIBRARY_DIR AND NOT QT_PLUGINS_DIR OR QT_QMAKE_CHANGED) |
719 | 722 | |
720 | 723 | # ask qmake for the translations directory |
… |
… |
|
734 | 737 | FIND_PATH(QT_IMPORTS_DIR NAMES Qt |
735 | 738 | HINTS ${qt_cross_paths} ${qt_imports_dir} |
736 | 739 | DOC "The location of the Qt imports" |
737 | | NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH |
738 | | NO_CMAKE_SYSTEM_PATH) |
| 740 | NO_DEFAULT_PATH) |
739 | 741 | mark_as_advanced(QT_IMPORTS_DIR) |
740 | 742 | endif(qt_imports_dir) |
741 | 743 | ENDIF (QT_LIBRARY_DIR AND NOT QT_IMPORTS_DIR OR QT_QMAKE_CHANGED) |