summaryrefslogtreecommitdiffstats
path: root/Modules/Internal/CheckFlagCommonConfig.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CheckCompilerFlag: Avoid matching parts of multiple messagesBrad King2025-09-081-13/+13
| | | | | | | Diagnostic messages for unsupported flags appear on a single line. Do not accidentally match unrelated messages across multiple lines. Fixes: #27156
* CheckCompilerFlag: Improve layout of message regex tablesBrad King2025-09-081-13/+27
|
* 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 ```
* CMP0054: Remove support for OLD behaviorBrad King2025-01-201-6/+0
|
* CheckCompilerFlag: Add support for LLVMFlangscivision2024-08-291-1/+2
| | | | | | | | Make checks like check_compiler_flag(Fortran "-Wall" HAVE_WALL) work with LLVMFlang.
* Merge topic 'revert-CheckCompilerFlag-clang-argument-unused'Brad King2023-03-141-3/+7
|\ | | | | | | | | | | | | | | | | 97fcd3bd30 CheckCompilerFlag: Revert 'Match the Clang "argument unused" output ...' Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8322
| * CheckCompilerFlag: Revert 'Match the Clang "argument unused" output ...'Brad King2023-03-131-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit 5b45a3d0ce (CheckCompilerFlag: Match the Clang "argument unused" output for all languages, 2023-01-23, v3.26.0-rc1~38^2). It broke existing projects that were silently tolerating unrelated unused arguments in their checks for C and CXX. For example, using `CFLAGS=-nostdinc` or `CXXFLAGS=-nostdinc++` causes those flags to be used when driving the linker as well, and Clang warns they are unused in that case. Add a test case covering the now-restored behavior. Fixes: #24591
* | Modules:Check*: refactor: use block(SCOPE_FOR POLICIES)scivision2023-03-081-2/+3
|/
* CheckCompilerFlag: Match the Clang "argument unused" output for all languagesKOLANICH2023-01-241-7/+3
| | | | | | Improve detection of missing compiler flags: move "argument unused during compilation: .*" pattern from language-specific branches into the common list.
* CheckCompilerFlag: Add Swift SupportEvan Wilde2022-11-041-0/+2
| | | | | Plumb through Swift `check_compiler_flag` support. Add tests to check that valid flags work and invalid flags don't.
* CheckCompilerFlag: Fix regression in locale environment preservationBrad King2022-04-071-2/+2
| | | | | | | Fix a typo from commit 660e0d80ae (internal/CheckCompilerFlag: rely on common configuration, 2022-01-12, v3.23.0-rc1~124^2~1) that caused locale environment variables to not be restored after they are set during the check.
* internal/CheckCompilerFlag: rely on common configurationMarc Chevrier2022-01-141-0/+75
Extract configuration step from the CheckCompilerFlag command to enable to share it with future CheckLinkerFlag implementation