summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
Commit message (Collapse)AuthorAgeFilesLines
* FindQt4: Fix typo in documentation formattingBrad King2023-10-021-1/+1
|
* FindQt4: Drop outdated advice to look at CMakeError.log on failureBrad King2023-01-181-1/+1
| | | | The find module does not write information to the log.
* Merge topic 'FPHSA-name-mismatches-chained-via-include'Brad King2020-08-101-0/+8
|\ | | | | | | | | | | | | | | 98844ec9db FPHSA: detect inclusion between find modules Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Logan Barnes <barneslt63@gmail.com> Merge-request: !5107
| * FPHSA: detect inclusion between find modulesBen Boeckel2020-08-071-0/+8
| | | | | | | | | | | | | | | | | | | | Various find modules include each other to delegate finding some subset or variant of the package. Ideally, these would use `find_dependency` or some other actual `find_package` mechanism, but that is a larger change. Instead, just detect inclusion and suppress FPHSA name mismatch warnings. Fixes: #21060
* | Fix typos identified using codespellJean-Christophe Fillion-Robin2020-07-221-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://github.com/codespell-project/codespell#readme The following command was used: ``` codespell -q6 --skip="\ .git,\ *.json,\ ./Copyright.txt,\ ./Help/command/foreach.rst,\ ./Help/prop_test/REQUIRED_FILES.rst,\ ./Help/variable/CTEST_COVERAGE_COMMAND.rst,\ ./Modules/CMakeCheckCompilerFlagCommonPatterns.cmake,\ ./Modules/CMakeRCInformation.cmake,\ ./Modules/Internal/CPack/NSIS.template.in,\ ./Modules/FindMatlab.cmake,\ ./Modules/MatlabTestsRedirect.cmake,\ ./Modules/Platform/Windows-Clang.cmake,\ ./Modules/Platform/Windows-Intel-Fortran.cmake,\ ./Modules/Platform/Windows-MSVC.cmake,\ ./Source/CMakeVersion.cmake,\ ./Source/cmConvertMSBuildXMLToJSON.py,\ ./Source/cmCreateTestSourceList.cxx,\ ./Source/cmGlobalVisualStudio10Generator.cxx,\ ./Source/cmExportBuildFileGenerator.cxx,\ ./Source/cmExportInstallAndroidMKGenerator.cxx,\ ./Source/cmExportInstallFileGenerator.cxx,\ ./Source/cmExportSet.cxx,\ ./Source/cmExportTryCompileFileGenerator.cxx,\ ./Source/cmFindPackageCommand.cxx,\ ./Source/cmInstallCommand.cxx,\ ./Source/cmGeneratorExpressionLexer.cxx,\ ./Source/cmLocalVisualStudio7Generator.cxx,\ ./Source/cmOrderDirectories.cxx,\ ./Source/cmTarget.cxx,\ ./Source/kwsys/*,\ ./Source/QtDialog/CMakeSetupDialog.ui,\ ./Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx,\ ./Source/CTest/cmParseCoberturaCoverage.h,\ ./Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/German.license.txt,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/German.menu.txt,\ ./Tests/RunCMake/GoogleTest/xml_output.cpp,\ ./Tests/RunCMake/Make/TargetMessages*,\ ./Utilities/*,\ " \ -L "\ dependees,\ endwhile,\ fo,\ filetest,\ helpfull,\ nd,\ objext,\ stoll,\ supercedes,\ superceded,\ vas,\ varn,\ " ```
* Fix elseif() in place of else()Artalus2019-07-031-1/+1
|
* Help: Convert remaining modules to block-style commentsKitware Robot2018-10-221-298/+299
|
* FindQt4: New IMPORTS, PLUGINS and MKSPECS handlingChristian Pfeiffer2018-05-141-27/+19
| | | | Fixes: #14155
* FindQt4: Revert "Set PLUGINS and IMPORTS dir even if empty"Brad King2018-03-191-12/+1
| | | | | | | | | The change in commit v3.11.0-rc1~306^2 (FindQt4: Set PLUGINS and IMPORTS dir even if empty, 2017-11-19) regressed existing builds on some machines. Revert it for CMake 3.11 pending further investigation. Fixes: #17814, #17817 Issue: #14155, #17492
* GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in ModulesCraig Scott2017-12-291-5/+6
|
* FindQt4: Set PLUGINS and IMPORTS dir even if emptyChristian Pfeiffer2017-11-191-1/+12
| | | | | Fixes: #14155 Issue: #17492
* FindQt4: Do not assume all libraries are frameworksJean-Christophe Fillion-Robin2017-08-211-6/+8
| | | | | | | | | | | Since on MacOSX not all modules are available as "framework" (e.g libQtUiTools.a), the assumption made in "FindQt4.cmake" is not always valid and systematically setting the imported libraries location to framework location is incorrect. This commit increases the robustness of the logic by first checking if the location exists. Fixes #17195
* Simplify CMake per-source license noticesBrad King2016-09-271-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* prefer list(APPEND) over string(APPEND) where appropriateDaniel Pfeifer2016-08-081-1/+1
|
* Use string(APPEND) in ModulesDaniel Pfeifer2016-07-271-1/+1
| | | | | | | Automate with: find Modules -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
* FindQt4: Document Qt4::QtDeclarative imported target (#16157)Brad King2016-06-201-0/+2
|
* FindQt4: Fix handling of QT_VERSION_MAJOR mismatchDaniel Scharrer2014-12-091-1/+1
| | | | | | | Fix capitalization of Qt4_FOUND variable when setting it to false in this case. This caused find_package(Qt4) to appear successful when it was not. Note that the legacy QT4_FOUND variable is unconditionally overwritten at the end of the file with the value of Qt4_FOUND.
* Help: Fix broken cross-references reported by 'nitpicky' optionBrad King2014-11-071-1/+1
| | | | | Enable the Sphinx 'nitpicky' option and fix the resulting warnings about dangling references.
* Modules: Wrap long lines in pre-formatted documentation blocksBrad King2014-11-061-5/+7
| | | | Help format the blocks better for display without a wide screen.
* Modules: Format documentation to avoid over-long preformatted linesBrad King2014-10-221-10/+15
| | | | | | Convert several preformatted code block literals that enumerate lists of options or variables to use reST definition lists instead. Manually wrap other long lines in code blocks.
* Merge topic 'FindQt4-more-plugins'Brad King2014-07-291-3/+3
|\ | | | | | | | | 4b5052b0 FindQt4: Add nativewifi and qtga plugins
| * FindQt4: Add nativewifi and qtga pluginsMathieu MARACHE2014-07-281-3/+3
| | | | | | | | | | While at it, update QT_QTGUI_PLUGINS to use QT_IMAGEFORMATS_PLUGINS instead of duplicating the list.
* | FindQt4: Don't further process qmake if it does not belong to Qt4Nils Gladitz2014-06-271-1/+2
| | | | | | | | | | | | If the only qmake that can be found belongs to Qt5 the find module would otherwise still further interrogate it and issue diagnostics which are specific to Qt4.
* | FindQt4: Use standard section header underline conventionBrad King2014-06-021-6/+6
| | | | | | | | | | | | | | The FindQt4 module is a CMake Domain object of type "module". Our convention for domain object document titles is "------" and domain object document sections is "^^^^^^". Switch to these within the FindQt4 documentation.
* | FindQt[34]: Prefer matching versioned tool namesRolf Eike Beer2014-05-221-6/+6
| | | | | | | | | | | | | | After finding qmake we search in QT_BINARY_DIR for the other Qt tools. Try all versioned executable names before trying the plain executable name. This makes it much more likely that if 2 different major versions are installed in the same prefix CMake will be able to detect a proper set of tools.
* | Find*: Make find_package(.. QUIET) affect Check* modules.Clinton Stimpson2014-03-301-9/+11
|/ | | | | | | | | | Fixes issues #14812 and #14813 where find_package(OpenMP QUIET) and find_package(Qt4 QUIET) would still print out messages when calling check*() functions. Also a partial fix for #14445 where building CMake (without cmake-gui) when Qt5 is installed and Qt4 is not installed and warnings come out of FindQt4.cmake.
* Qt4: Add IMPORTED executable for qmake.Stephen Kelly2014-02-091-0/+5
|
* Help: Specify that qtmain.lib is only used for WIN32 executables.Stephen Kelly2014-02-051-1/+2
|
* Merge topic 'fix-Qt-autogen'Brad King2014-02-041-0/+8
|\ | | | | | | | | | | 6053ce22 QtAutogen: Make uic work even when the source is in a subdir. 1fc9ecfa FindQt4: Make AUTOMOC work regardless which order Qt 4/5 is found.
| * FindQt4: Make AUTOMOC work regardless which order Qt 4/5 is found.Stephen Kelly2014-01-291-0/+8
| | | | | | | | | | | | | | | | | | Commit 321e348e (QtAutogen: Use Qt 4 IMPORTED targets to find executable locations., 2014-01-24) attempted to fix this problem, but only solved it for a particular ordering of find_package for Qt 4 and Qt 5. Add a test to ensure that it works with both orderings.
* | Help: Move Qt tool invocation information to a generic cmake-qt manual.Stephen Kelly2014-02-021-72/+1
|/ | | | | | | | Add an introduction about the use of different package types, and the ability to use Qt 4 and 5 versions together in a single buildsystem. Add a section about automatic linking of the qtmain.lib library and how to disable it.
* Qt4: Create IMPORTED executable targets for all Qt executables.Stephen Kelly2014-01-281-64/+22
| | | | | Qt 5 already has similar IMPORTED targets. The versioned namespace will allow de-conflicting the variable names between Qt 4 and Qt 5.
* Help: Update Qt4 documentation.Stephen Kelly2014-01-151-367/+212
| | | | | | | | | | | | | | | Remove independent doc listing for Qt4ConfigurationSettings, Qt4Macros and UseQt4. These are implementation details. Recommend the use of IMPORTED targets. Remove references to the UseQt4 file, which is obsolete in light of the IMPORTED targets. Add documentation for automatic tool invocation and options. Remove reference to variables which should not be needed in modern implementations.
* Document the TARGET options in Qt4 macros.Stephen Kelly2014-01-141-7/+13
| | | | | Feature introduced in commit 9ce60ff5 (Qt4Macros: Allow specifying a TARGET in invokations of macros., 2013-02-26).
* Merge topic 'policies'Brad King2014-01-091-11/+15
|\ | | | | | | | | | | | | | | | | 73e9340 get_target_property: Error on non-existent target. ab9f58f FindQt4: Ensure target exists before calling get_target_property. 37ebeb9 FindQt4: Fix use of get_target_property to use actual target name. 6aabb6a Genex: Use case-sensitive comparison for COMPILER_ID. 5bb53f6 cmTarget: Deprecate COMPILE_DEFINITIONS_ properties with a policy.
| * FindQt4: Ensure target exists before calling get_target_property.Stephen Kelly2014-01-081-11/+15
| | | | | | | | | | This macro is called for all potential Qt targets, even those which were not found.
| * FindQt4: Fix use of get_target_property to use actual target name.Stephen Kelly2014-01-081-1/+1
| | | | | | | | | | This was introduced in ba48e63f (Generate config-specific interface link libraries propeties., 2013-02-09).
* | FindQt4: Use NO_CMAKE_FIND_ROOT_PATH where search paths are already rooted.Clinton Stimpson2014-01-081-2/+5
|/ | | | Thanks to Thomas Petazzoni for part of this fix.
* Define QT_NO_DEBUG for non-debug use of Qt 4.Stephen Kelly2013-12-101-0/+4
|
* FindQt4: Restore ability to handle a changed QT_QMAKE_EXECUTABLE properly.Simon Sasburg2013-12-061-0/+5
| | | | | This fixes a regression in commit 21123416 where it was trying to better handle a qmake from Qt5.
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-339/+501
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* Merge topic 'Qt4-INTERFACE_LINK_LIBRARIES'Brad King2013-07-261-0/+5
|\ | | | | | | | | 0f267c0 FindQt4: Populate the INTERFACE_LINK_LIBRARIES of IMPORTED targets.
| * FindQt4: Populate the INTERFACE_LINK_LIBRARIES of IMPORTED targets.Stephen Kelly2013-07-251-0/+5
| | | | | | | | | | This makes the IMPORTED_LINK_INTERFACE_LIBRARIES_<CONFIG> properties obsolete.
* | Merge topic 'fix-FindQt4-available-modules'Brad King2013-07-251-1/+1
|\ \ | |/ |/| | | | | d57c1c1 FindQt4: Re-add QAxServer to the QT_MODULES.
| * FindQt4: Re-add QAxServer to the QT_MODULES.Stephen Kelly2013-07-241-1/+1
| | | | | | | | | | This was removed instead of moved in commit b8af46cb (FindQt4: Don't fail if certain Qt modules are unavailable.).
* | Merge topic 'fix-FindQt4-available-modules'Brad King2013-07-241-18/+12
|\ \ | |/ | | | | | | 969e7ee FindQt4: Don't use Qt component _FOUND vars before they're defined (#14286)
| * FindQt4: Don't use Qt component _FOUND vars before they're defined (#14286)Stephen Kelly2013-07-241-18/+12
| | | | | | | | | | | | | | | | | | This fixes a regression introduced by commit b8af46cb (FindQt4: Don't fail if certain Qt modules are unavailable., 2013-05-23) The _FOUND variable is set by the _QT4_ADJUST_LIB_VARS macro, so invoke that unconditionally, and guard only the set_property calls, as described in the original bug report (#14165).
* | Mark qt4_use_modules and qt4_automoc as obsolete.Stephen Kelly2013-07-141-0/+2
| | | | | | | | | | The QT_QMAKE_EXECUTABLE has to be passed through the cmake calls because the executable may not be in the PATH.
* | Merge topic 'find-Qt4-granular-modules'Brad King2013-06-031-20/+34
|\ \ | |/ | | | | | | b8af46c FindQt4: Don't fail if certain Qt modules are unavailable.
| * FindQt4: Don't fail if certain Qt modules are unavailable.Stephen Kelly2013-06-031-20/+34
| |