summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCompilerFlag.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Check{,C,CXX,Fortran,OBJC,OBJCXX}CompilerFlag: Update documentationPeter Kokot2025-05-281-16/+84
| | | | | | | | | | | | | | | | | | | - Added intro code blocks showing how to include these modules. - Used word "command" instead of "macro". - Added examples sections. - Updated and synced descriptions of commands and arguments. - Added a rubric title for variables that affect the checks. - Listed CMAKE_TRY_COMPILE_TARGET_TYPE variable in the rubric together with CMAKE_REQUIRED_* variables. - Added link to CheckCompilerFlag module in the target_compile_options() docs. - Used lowercase style for check_fortran_compiler_flag() command. - Added a link to `$<COMPILE_LANGUAGE:languages>` generator expression so it can be linked from other pages (See commit 2e37a20f027aaf6dd098b58fcb3147706782c1fa for more info on the initial style used). - Fixed the GENEX_NOTE inclusion (starting with line after the 2nd line) where part of the sentence was rendered in the output.
* Help: Update CMAKE_REQUIRED_* variables for checksPeter Kokot2025-05-141-7/+7
| | | | | | | | | | | This moves indentation of the included RST files to the initial level and instead indents the include directives where used. Additionally: - Instead of ";-list", "semicolon-separated list" is used. - Instead of mentioning `<resultVar>` argument, a more general description is used. - Few minor tweaks added.
* Help: Use `*.rst` extension for included filesAlex Turbov2025-04-131-7/+7
| | | | So, editor(s) can correctly highlight the RST syntax in the included files.
* LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
| | | | | | | | | | ``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
* Check*: Add option to pass link directories into checksAliaksandr Averchanka2024-09-091-0/+2
|
* Help Check*CompilerFlag harmonize textscivision2024-08-231-12/+14
| | | | This is like recently done for Check*Source{Compiles,Runs}
* codespell: Fix typosBrad King2023-11-171-1/+1
|
* Help:Check*: include CMAKE_REQUIRED_* vars to dedupescivision2023-03-141-11/+23
| | | | | | CMAKE_REQUIRED_FLAGS now notes that space-delimited string, not ;-list is required, which could be surprising compared to similar options that do use ;-list
* Modules: Do not implicitly add new functions via old Check ModulesRobert Maynard2020-10-261-73/+3
| | | | | | | | | | | | | The conversion of Check<Lang>CompilerFlag, SourceCompiles, and SourceRuns over to the new functions has the possibility of breaking projects that had functions with those existing names. To reduce the possibility of collisions we now have all the legacy code call functions that start with `cmake_`, and users will need to explicitly include the new modules to get the non-prefixed versions Fixes: #21359
* Help: Cleanup typos and grammar for the 3.19 releaseCraig Scott2020-10-241-1/+1
|
* CUDA: Add Support to SourceCompiles|Runs and CheckCompilerFlagsRobert Maynard2020-10-081-0/+4
|
* Merge topic 'add_ispc_to_check_helpers'Brad King2020-10-071-0/+2
|\ | | | | | | | | | | | | e17e2c6a51 ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5337
| * ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPCRobert Maynard2020-10-061-0/+2
| |
* | CheckCompilerFlag: Update the regex used to detect invalid options for GCC 10Luthaf2020-10-061-5/+5
|/ | | | | | | | | The warning emmitted by GCC for invalid options have been updated to read "command-line option XXX is valid ..." instead of "command line option XXX is valid ...". Update the regex to make it valid with both the old and new warning message. Fixes: #21275
* CheckCompilerFlag: unified way to check compiler flags per languageRobert Maynard2020-09-281-0/+105