summaryrefslogtreecommitdiffstats
path: root/Modules/CheckLanguage.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'CheckLanguage-cuda-host'Brad King2020-05-061-1/+1
|\ | | | | | | | | | | | | | | 5b304a7503 CheckLanguage: Fix forwarding of CMAKE_CUDA_HOST_COMPILER Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !4711
| * CheckLanguage: Fix forwarding of CMAKE_CUDA_HOST_COMPILERBrad King2020-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fix the condition added by commit fada8cbfd6 (CheckLanguage: Report CMAKE_CUDA_HOST_COMPILER if needed for compilation, 2019-05-31, v3.15.0-rc1~12^2) to activate CUDA-specific logic. The old condition had worked in our test suite only by accident because the loop variable used in the test happened to be the name and value that the old condition used! Update the test to use a different name. Fixes: #19013
* | CheckLanguage: hide commonly used variable namesHannes Vogt2020-03-181-8/+8
| | | | | | | | | | | | | | The check_language sets internal variables with a common name in the caller's scope: `result`, `output` and `content`. They are now prefixed with `_cl_`, inspired by the CheckLibraryExists module.
* | CheckLanguage: Pass CMAKE_MAKE_PROGRAM to child processKyle Edwards2020-01-241-0/+6
| | | | | | | | Fixes: #20017
* | Refactor: Use added message types in various modulesAlex Turbov2019-11-021-2/+4
|/ | | | Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* CheckLanguage: Report CMAKE_CUDA_HOST_COMPILER if needed for compilationRobert Maynard2019-06-031-4/+23
| | | | Fixes: #19013
* Help: Improve description of modulesBartosz Kosiorek2019-04-231-5/+5
|
* Help: Convert remaining modules to block-style commentsKitware Robot2018-10-221-29/+30
|
* Check*: Added include guardsCristian Adam2017-12-011-0/+2
|
* CheckLanguage: Pass generator instance into checkBrad King2017-10-191-0/+6
| | | | | Otherwise we do not check for support for the language with the same generator instance as the caller.
* CheckLanguage: Pass generator platform and toolset into checkBrad King2017-03-081-0/+2
| | | | | Otherwise we do not check for support for the language with the same generator settings as the caller.
* 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.
* Keep cmake_minimum_required calls in sync with current versionDaniele E. Domenichelli2014-05-191-1/+1
| | | | | | Update cmake_minimum_required calls in CMakeLists.txt in Modules and in CMakeLists.txt generated by other modules, so that they are always in sync with current CMake version.
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-9/+22
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* Add CheckLanguage moduleBrad King2012-02-081-0/+65
Define a "check_language(<lang>)" macro to test whether <lang> can be enabled. Cache the result in CMAKE_<lang>_COMPILER. Add a test case covering expected results.