| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| | |
5c6d6ec27c PCH: Clang: Update PCH usage flags to include original header
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4360
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add an additional include flag to PCH usage command line to fix programs
that rely on `compile_commands.json` file. Pass it to the preprocessor
directly to avoid compiler driver to change it to '-include-pch'.
When preprocessor is requested to preprocess a file, it tries to get
the original filename from '.pch' and uses that file for preprocessing.
CMake generates a '.pch' file from the '.hxx' file by passing an empty
'.cxx' source file to the compiler as a compilation unit and the header
file with the '-include' flag. After that, compiler puts compilation
unit filename in the '.pch' as the original filename.
However, CMake build system uses empty file as the source file and
passes the header file using '-include-pch' flag. As a result, Clang
uses the wrong file for preprocessing and produces the corrupted
preprocessed file.
Fixes: #20355
Signed-off-by: Sergey Larin <cerg2010cerg2010@mail.ru>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
321df5783d Swift: support `-rpath` for executables
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4365
|
| |/
| |
| |
| | |
This adjusts the flags to enable setting the RPATH for executables.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ef3194a6f8 ExternalProject: Quote each git --config option to handle spaces
40d1d29cfa Tests: Add missing ExternalProject smoke tests
afc8956765 Tests: Fix test_clean target missing some test directories
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4364
|
| |/
| |
| | |
Fixes: #20354
|
|/
|
|
|
|
| |
Also replace UTF-8 graphical characters with simple dashes.
Fixes: #20349
|
|\
| |
| |
| |
| |
| |
| | |
3af0b33ec6 Help: module CPack: Make internal hyperlink target more unique
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4353
|
| |
| |
| |
| | |
We already have a `.. _targets:` in `Help/command/install.rst`.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
59e9f33d78 Help: module CPack: New section on targets.
f33708eed9 Help: module CPack: add cross-reference to cpack-generators(7).
4949e1261a Help: module CPack. Explain usage of the build targets.
72eaeb41f5 Help: module CPack: correction: 2 config files are generated, not just 1
c35a9ff9c3 Help: CPack module: Correct the summary (configure, not build)
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4352
|
| |
| |
| |
| |
| | |
To explain in full detail to what extent the targets package and
package_source are supported by different generators.
|
| | |
|
| |
| |
| |
| |
| | |
Explain the usage of the two new build targets, package and
package_source.
|
| |
| |
| |
| | |
Besides CPackConfig.cmake, the module also generates CPackSourceConfig.cmake.
|
| |
| |
| |
| |
| | |
Including CPack does not "build" installers.
It just *configures* them.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
1e9328a00d Help: CMakePrintSystemInformation.cmake: Minor corrections.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4351
|
| |/
| |
| |
| |
| | |
Punctuation.
"file" -> "module"
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
e240371ab1 Help: CPackIFWGenerator: explain relation to CPackIWF
78779c6111 Help: Show external link only once per page; explain abbreviation QtIFW.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4348
|
| | |
| | |
| | |
| | |
| | | |
* Make overview more focussed
* Explain the relation to CPackIFW
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
0ba8010255 ExternalProject: Fix git submodule recursion on update
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4346
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In commit 5bc6230741 (ExternalProject: Option to turn off recursive
update of git submodules, 2019-10-16) we implemented the feature in the
clone script written by `_ep_write_gitclone_script` but not in the
update script written by `_ep_write_gitupdate_script`. Implement the
latter by factoring out a common helper to use in both places.
Fixes: #20335
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ceb5ee4a7b FindOpenMP: Add support for Clang on Windows
2dbff623f9 FindOpenMP: Save flags/libs in cache entries each time they are detected
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4327
|
| | |
| | |
| | |
| | | |
Fixes: #19404
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
3dab4682f6 FindPython: reduces consumption of resources
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4338
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Stores more information in the cache to reduce the number
of sub-processes required on subsequent find_package calls.
Fixes: #20337
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
5c2a92f44f Swift: Exclude SDK include paths
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4315
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | | |
Populate `CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES` with the macOS SDK's
include directory so that we filter such implicit directories out of
Swift targets.
Fixes: #19845
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | | |
b4d5ea8233 FindMPI: Preserve order of include directories on re-runs of CMake
8261ee3a9c FindMPI: Restore re-construction of include directories
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4341
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The fix in commit 5861c6d450 (FindMPI: Preserve include order when
extracting component directories, 2019-12-19) only works on the first
run of CMake in which we find MPI. Extend the fix to save the compiler
wrapper's entire include path in our cache without splitting anything
out. That way we can preserve the order when CMake re-runs.
Fixes: #20338
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The fix in commit 5861c6d450 (FindMPI: Preserve include order when
extracting component directories, 2019-12-19) only works on the first
run of CMake in which we find MPI. It preserves the include directories
on the first run but still splits them up and saves the pieces in the
cache. On future runs the pieces are not re-assembled, and we do not
know the order anyway.
Restore the re-assembly step so that at least all the include dirs are
available. Leave preservation of the original order to later work.
Issue: #20338
|
| | |
| | |
| | |
| | | |
Fixes: #20318
|
| |/
|/| |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
1c2d031cbd Add -E cmake_llvm_rc to preprocess files for llvm-rc
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4219
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
llvm-rc requires preprocessed rc files. The CMake command line tool
cmake_llvm_rc enables channing the preprocessor call and the resource
compiler and make this appear as single compilation step.
When llvm-rc is detected as resource compiler, the RC compilation step
is set to use this command.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
18d2e6fc8f SDCC: Remove default flags for a specific target
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4321
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Remove defaults for a specific target (8051) because they are incorrect
for other targets.
Fixes: #20308
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
87df637078 CUDA: Do not treat CUDA toolkit include directories as implicit
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4317
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
CMake properly detects the toolkit directories as implicit system
includes, but CUDA compilers don't add explicit `-isystem` markups to
these directories when compiling CUDA code. Due to this limitation,
allow users to explicitly specify these directories as SYSTEM dirs.
Fixes: #16464, #19864
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
d5895f50c3 CMakeDetermineCompilerABI: Avoid failing on warnings with -Werror
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4316
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Simply remove `-Werror` flags from `CMAKE_<LANG>_FLAGS` to avoid failing
ABI detection if there happen to be warnings in the test project. For
example, `-Wunused-command-line-argument` warnings are common since the
ABI detection project may not exercise all the flags passed by users.
Fixes: #20305
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
1e26d57188 Ninja: properly handle exports from Swift exes
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4314
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds logic to properly handle Swift executables. Only executables
marked as exporting symbols will now generate module interfaces for the
executable.
|
|\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | | |
e3d3b7ddeb Android: Fix binutils selection with NDK r19+ unified toolchain
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4318
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In commit 97bca2f9fa (Android: Use unified toolchain in NDK r19+,
2019-07-26, v3.16.0-rc1~342^2) we hard-coded use of the unified
toolchain for NDK r19+ and skipped most of the old detection logic.
However, in that fast path we left out setting `_CMAKE_TOOLCHAIN_PREFIX`
for `CMakeFindBinutils` to select the matching binutils. Add it.
Fixes: #20038
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
97de48b528 Tests: Update Assembler code generation to select MSVC runtime library
6348ffb9e5 ASM: Hook up Windows-specific GNU/Clang compiler information modules
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4287
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
This allows building .s/.S assembly code, and makes sure that the
`-fPIC` option isn't passed to the compiler (as it errors out on
Clang and causes a loud warning on GCC).
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
2ed00e8ef8 CPack: Deprecate OSXX11 generator
7bf187499f CPack: Deprecate PackageMaker generator
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4309
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The CPack OSXX11 generator has not had any updates since 2011 except as
part of sweeping maintenance changes. It also creates packages with a
OSXScriptLauncher binary that has only ppc and i386 architectures which
are not supported by Apple anymore. Furthermore, the generator is not
even mentioned in our documentation. Add a deprecation warning.
Fixes: #20235
|