summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'add_test-special-chars-in-name'Brad King2020-08-172-10/+116
|\ | | | | | | | | | | | | a20987732b add_test: Allow special characters in test name (w/ policy CMP0110) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5076
| * add_test: Allow special characters in test name (w/ policy CMP0110)Deniz Bahadir2020-08-122-10/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore the change from commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2) that had to be reverted by commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2) for compatibility. Add policy CMP0110 to make the change in a compatible way. Also, support even more characters than before by generating the test scripts using bracket arguments around the test names. Fixes: #19391 Signed-off-by: Deniz Bahadir <dbahadir@benocs.com>
* | CMake Nightly Date StampKitware Robot2020-08-171-1/+1
| |
* | CMake Nightly Date StampKitware Robot2020-08-161-1/+1
| |
* | CMake Nightly Date StampKitware Robot2020-08-151-1/+1
| |
* | CMake Nightly Date StampKitware Robot2020-08-141-1/+1
| |
* | Merge topic 'optimize-static-library-deps'Kyle Edwards2020-08-135-8/+212
|\ \ | | | | | | | | | | | | | | | | | | 2e42651dff Add option to optimize link dependencies for static libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5103
| * | Add option to optimize link dependencies for static librariesKyle Edwards2020-08-125-8/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add an `OPTIMIZE_DEPENDENCIES` target property and supporting `CMAKE_OPTIMIZE_DEPENDENCIES` variable to optionally enable pruning and flattening of outgoing dependencies from static libraries. Since they do not actually link, they only depend on side effects of their dependencies. Therefore we can drop dependencies that contribute no side effects.
* | | CMake Nightly Date StampKitware Robot2020-08-131-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2020-08-121-1/+1
|/ /
* | Merge topic 'bootstrap-ninja'Brad King2020-08-113-5/+18
|\ \ | | | | | | | | | | | | | | | | | | 491dddfbde Bootstrap: Add support for Ninja Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3652
| * | Bootstrap: Add support for NinjaKyle Edwards2020-08-103-5/+18
| | |
* | | Merge topic 'osx-archs-apple-only'Brad King2020-08-111-0/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 70ce1ad64a PCH: Avoid Apple-specific architecture flags on other platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5118
| * | | PCH: Avoid Apple-specific architecture flags on other platformsBrad King2020-08-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit f593b354da (PCH: Add support for multi architecture iOS projects, 2020-04-02, v3.18.0-rc1~414^2) the `OSX_ARCHITECTURES` target property (and corresponding `CMAKE_OSX_ARCHITECTURES` variable) affects flags on non-Apple platforms by accident. Add a missing condition to avoid this. Fixes: #21072
* | | | CMake Nightly Date StampKitware Robot2020-08-111-1/+1
| |_|/ |/| |
* | | Merge topic 'build-interface-targets'Brad King2020-08-1016-189/+63
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bafa9fe887 fileapi: Add INTERFACE libraries with SOURCES to codemodel-v2 4391913133 Add INTERFACE libraries to generated buildsystem if they have SOURCES afb998704e Remove filtering of allowed INTERFACE library properties e7edba2baf Makefiles: Use IsInBuildSystem in global generator target type checks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5078
| * | | fileapi: Add INTERFACE libraries with SOURCES to codemodel-v2Brad King2020-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INTERFACE libraries with SOURCES now appear in the generated buildsystem, so include them in the codemodel output too. We do not need to bump the `codemodel-v2` object kind minor version because that was already done in post-3.18 development by commit 7d6861f367 (fileapi: Extend codemodel targets with language standard, 2020-06-18). Fixes: #18608
| * | | Add INTERFACE libraries to generated buildsystem if they have SOURCESBrad King2020-08-0710-63/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INTERFACE libraries were created with the intention of collecting usage requirements for use by other targets via `target_link_libraries`. Therefore they were not allowed to have SOURCES and were not included in the generated buildsystem. In practice, this has become limiting: * Header-only libraries do have sources, they just do not compile. Developers should be able to edit those sources (the header files) in their IDE. * Header-only libraries may need to generate some of their header files via custom commands. Some projects work around these limitations by pairing each interface library with an `add_custom_target` that makes the header files and custom commands appear in the generated buildsystem and in IDEs. Lift such limitations by allowing INTERFACE libraries to have SOURCES. For those with sources, add a corresponding build target to the generated buildsystem. Fixes: #19145
| * | | Remove filtering of allowed INTERFACE library propertiesBrad King2020-08-036-104/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we disallowed use of arbitrary properties on INTERFACE libraries. The goal was to future-proof projects using them by not allowing properties to be set that may affect their future inclusion in the generated buildsystem. In order to prepare to actually include INTERFACE libraries in the generated buildsystem, drop the filter and allow arbitrary properties to be set. Issue: #19145
| * | | Makefiles: Use IsInBuildSystem in global generator target type checksBrad King2020-08-031-21/+9
| | | | | | | | | | | | | | | | | | | | | | | | Follow up from commit 422d9a0ab2 (Factor out generator checks for filtering out interface libraries, 2020-07-20) with more uses of `IsInBuildSystem`.
* | | | Merge topic 'clang-cl-vfs'Brad King2020-08-102-6/+27
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 20ebaed972 Clang: Add support for passing VFS arguments d993ebd4ca clang-cl: Add '--' before source file a94672b919 cmake: Change cmake_llvm_rc separator from -- to ++ to avoid conflict Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5087
| * | | | Clang: Add support for passing VFS argumentsThomas Bernard2020-08-071-4/+21
| | | | |
| * | | | cmake: Change cmake_llvm_rc separator from -- to ++ to avoid conflictThomas Bernard2020-08-071-2/+6
| | | | |
* | | | | Merge topic 'ninja-msvc-deps-prefix'Brad King2020-08-103-3/+43
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 37a279f8d1 Ninja: Write msvc_deps_prefix as UTF-8 when console codepage is UTF-8 67599c7ada cmGeneratedFileStream: Add WriteRaw method Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5089
| * | | | | Ninja: Write msvc_deps_prefix as UTF-8 when console codepage is UTF-8Ben McMorran2020-08-071-2/+20
| | | | | |
| * | | | | cmGeneratedFileStream: Add WriteRaw methodBen McMorran2020-08-032-1/+23
| | |/ / / | |/| | |
* | | | | CMake Nightly Date StampKitware Robot2020-08-101-1/+1
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2020-08-091-1/+1
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2020-08-081-1/+1
| |_|_|/ |/| | |
* | | | Merge topic 'cygwin-patches'Brad King2020-08-071-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ecc1961768 FindTclsh: Drop Cygwin-specific behavior and use POSIX code path af666acdf4 FindOpenGL: Drop Cygwin-specific behavior and use POSIX code path 8edbc59e46 install: Use case-sensitive pattern matching on Cygwin 24482499ea FindPerlLibs: Add versioned perl library name for Cygwin Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5092
| * | | | install: Use case-sensitive pattern matching on CygwinLemures Lemniscati2020-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on downstream patch from Cygwin package for CMake by Marco Atzeri: * https://github.com/matzeri/cygwin-pkg/blob/64864eb8f0d635ea44226e4b9a41a7ca59a1c7dd/cmake/3.17.3-case-sensitivity.patch
* | | | | Merge topic 'cuda_memcheck_more_errors'Brad King2020-08-071-1/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d7a2cf681b Tests: Add cases for cuda-memcheck error types 562dcec3c4 CTest: Add error types to cuda-memcheck parser Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5101
| * | | | | CTest: Add error types to cuda-memcheck parserTobias Ribizel2020-08-051-1/+2
| | | | | |
* | | | | | Merge topic 'cmFileCommand-typo'Brad King2020-08-071-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5dd710286f Correct a typo in cmFileCommand.cxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5106
| * | | | | | Correct a typo in cmFileCommand.cxxFelix Yan2020-08-061-1/+1
| | | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2020-08-071-1/+1
| | | | | | |
* | | | | | | Merge topic 'compiler_flags'Brad King2020-08-063-3/+16
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f76c20da63 Toolchain: Test compiler initial settings db486da265 Toolchain: Update documentation for initial compiler flags deec2f587c Toolchain: Take CMAKE_<lang>_FLAGS_INIT into account during compiler detection ca899af3e2 Toolchain: Handle repeated invocations of CMake with -DCMAKE_C_COMPILER 12ba89e142 Toolchain: Make `/path/comp;-argn' behave the same as 'comp;-argn' 6f1af899db Toolchain: Capture all arguments from CMAKE_<LANG>_COMPILER ec1d3bc0b6 cmake: avoid exception when printing "changed variables" message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4136
| * | | | | | Toolchain: Handle repeated invocations of CMake with -DCMAKE_C_COMPILERFred Baksik2020-07-292-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Repeated invocations of `cmake ... -DCMAKE_C_COMPILER=gcc` should not trigger a "You have changed variables" message even though the cache value of CMAKE_C_COMPILER changes from '/path/to/gcc' to 'gcc'. Make repeated invocations of `cmake ... -DCMAKE_C_COMPILER=gcc;-pipe` not trigger the warning by comparing the compiler name portion of the list to the compiler being used.
| * | | | | | cmake: avoid exception when printing "changed variables" messageFred Baksik2020-07-231-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the changed cache variable was a list then this processing may attempt to access beyond the last item in the list. Instead skip printing the non-existing value and backup one to finish the loop.
* | | | | | | Merge topic 'update-kwsys'Brad King2020-08-065-62/+26
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 05e3abafa5 Merge branch 'upstream-KWSys' into update-kwsys 82fd685043 KWSys 2020-08-05 (185dd56e) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5104
| * | | | | | | Merge branch 'upstream-KWSys' into update-kwsysBrad King2020-08-055-62/+26
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2020-08-05 (185dd56e)
* | | | | | | Merge topic 'cmake-find-package-mode-help'Brad King2020-08-061-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c0e4a0bd82 cmake: Update --help output to discourage use of --find-package mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5099
| * | | | | | | cmake: Update --help output to discourage use of --find-package modeBrad King2020-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21056
* | | | | | | | Merge topic 'FixTooManyOpenFiles'Brad King2020-08-062-34/+14
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 57f250dcc0 Graphviz: Fix issue with too many open file streams on Windows platform Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5088
| * | | | | | | | Graphviz: Fix issue with too many open file streams on Windows platformStephan Rohmen2020-07-312-34/+14
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | Fixes #20931
* | | | | | | | Merge topic 'reuse_pch_no_delay'Brad King2020-08-061-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ef97fbe6c2 PCH: Avoid unnecessary 30s delay on MSBuild Generator with REUSE_FROM Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5102
| * | | | | | | | PCH: Avoid unnecessary 30s delay on MSBuild Generator with REUSE_FROMCristian Adam2020-08-051-1/+1
| | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix logic added by commit 1f791eb160 (Multi-Ninja: Fix reusable PCHs for MSVC, 2020-05-24, v3.18.0-rc1~72^2) to avoid an unnecessary delay. Fixes: #21054
* | | | | | | | Merge topic 'automoc_timestamp_deps'Brad King2020-08-062-3/+48
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9a9ed4b9d3 Merge branch 'backport-3.17-automoc_timestamp_deps' 7445c9a58a AutoGen: Add test to check for correct AutoMoc dependencies a79056bb02 AutoGen: Fix over-specified direct dependencies of custom command Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Aleix <aleixpol@kde.org> Merge-request: !5085
| * \ \ \ \ \ \ \ Merge branch 'backport-3.17-automoc_timestamp_deps'Brad King2020-08-052-3/+48
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| | * | | | | | | AutoGen: Fix over-specified direct dependencies of custom commandAlexandru Croitor2020-08-032-3/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AutoMoc timestamp creating custom command explicitly depended on all dependencies of the origin target (associated to the AutoGen target). When an origin target depended on a shared library 'libfoo.so', if it was re-linked, the AutoMoc custom command would touch its output timestamp file, and thus cause needless rebuilding of sources, despite the shared library not having any influence on the AutoMoc generated files. Introduce a new '<target>_autogen_timestamp_deps' utility target, which will serve as an 'order-only' dependency for the custom command. This will prevent needless rebuilding, because touching 'libfoo.so' will not cause the custom command to be re-executed. The new AutoMoc dependency tree looks like: '_autogen_timestamp_deps (serves as order-only dep)' <- '<target_autogen>/timestamp' file ( + moc deps file) <- '<target>_autogen' target. Fixes: #21020