summaryrefslogtreecommitdiffstats
path: root/bootstrap
Commit message (Collapse)AuthorAgeFilesLines
* Makefiles Generators: use compiler for dependencies generationMarc Chevrier2020-11-291-0/+2
| | | | | | | | | | | Each source compilation generates a dependencies file. These dependencies files are consolidated in one file per target. This consolidation is done as part of command 'cmake -E cmake_depends` launched before evaluation of makefile dependency graph. The consolidation uses the same approach as `CMake` dependencies management. Fixes: #21321
* Merge topic 'cmake-E-cat-binary'Brad King2020-10-151-0/+1
|\ | | | | | | | | | | | | | | | | f7a5f28318 cmake: Fix '-E cat' command for binary files on Windows 90b39a5209 cmConsoleBuf: Factor out cout/cerr console buffer management f1fdd15863 clang-format: Fix include block order in ctest.cxx and cpack.cxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5364
| * cmConsoleBuf: Factor out cout/cerr console buffer managementBrad King2020-10-141-0/+1
| |
| * Merge topic 'bootstrap-intel' into release-3.18Brad King2020-07-271-1/+1
| |\ | | | | | | | | | | | | | | | | | | 796466284b bootstrap: Fix support for Intel compiler with modern GNU system compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5057
* | \ Merge topic 'bootstrap-make-smake'Brad King2020-10-141-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 8e7ece1416 bootstrap: add smake as known make processors Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5372
| * | | bootstrap: add smake as known make processorsIssam E. Maghni2020-10-141-1/+1
| | | | | | | | | | | | | | | | As found in “Modules/CMakeUnixFindMake.cmake”
* | | | Merge topic 'bootstrap-ninja-samu'Brad King2020-10-141-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | f0ac977d3c bootstrap: add samu as known ninja processors Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5371
| * | | bootstrap: add samu as known ninja processorsIssam E. Maghni2020-10-141-1/+1
| | | | | | | | | | | | | | | | As found in “Modules/CMakeNinjaFindMake.cmake”
* | | | cmCustomCommandGenerator: Add option to transform depfileKyle Edwards2020-10-131-34/+33
| | | |
* | | | cmake -E: Add cmake_transform_depfile internal commandKyle Edwards2020-10-131-0/+4
|/ / /
* | | libuv: Add support for building for QNX within CMakeElad Lahav2020-09-251-0/+4
| | |
* | | cmake_path command: path managementMarc Chevrier2020-09-061-0/+1
| | | | | | | | | | | | Fixes: #19568, #20922
* | | cmCMakePath: Class for path handlingMarc Chevrier2020-09-061-0/+1
| | |
* | | Bootstrap: Use #pragma once in cmThirdParty.hKyle Edwards2020-09-031-3/+1
| | |
* | | Bootstrap: Add support for NinjaKyle Edwards2020-08-101-69/+291
| | |
* | | Merge topic 'bootstrap-intel'Brad King2020-07-271-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 796466284b bootstrap: Fix support for Intel compiler with modern GNU system compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5057
| * | bootstrap: Fix support for Intel compiler with modern GNU system compilerBrad King2020-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On systems with older GNU system compilers, the Intel C++ compiler does not define `__cplusplus` to any version newer than C++11. This prevented `bootstrap` from detecting that a given C++ standard flag has enabled C++17 mode in the compiler. In commit 033a4b12a5 (bootstrap: Extend C++17 check for our cast functions, 2019-12-14, v3.17.0-rc1~291^2) we added a preprocessor condition to attempt to detect C++17 mode in the Intel compiler on such systems by looking for `__cpp_if_constexpr`. However, on systems with a modern GNU system compiler, that definition is available even in C++11 mode. Switch to using `__cpp_deduction_guides` to detect C++17 mode for the Intel C++ compiler. That seems to be defined exclusively in C++17 mode regardless of the version of the system compiler. Fixes: #21013
* | | Fix typos identified using codespellJean-Christophe Fillion-Robin2020-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://github.com/codespell-project/codespell#readme The following command was used: ``` codespell -q6 --skip="\ .git,\ *.json,\ ./Copyright.txt,\ ./Help/command/foreach.rst,\ ./Help/prop_test/REQUIRED_FILES.rst,\ ./Help/variable/CTEST_COVERAGE_COMMAND.rst,\ ./Modules/CMakeCheckCompilerFlagCommonPatterns.cmake,\ ./Modules/CMakeRCInformation.cmake,\ ./Modules/Internal/CPack/NSIS.template.in,\ ./Modules/FindMatlab.cmake,\ ./Modules/MatlabTestsRedirect.cmake,\ ./Modules/Platform/Windows-Clang.cmake,\ ./Modules/Platform/Windows-Intel-Fortran.cmake,\ ./Modules/Platform/Windows-MSVC.cmake,\ ./Source/CMakeVersion.cmake,\ ./Source/cmConvertMSBuildXMLToJSON.py,\ ./Source/cmCreateTestSourceList.cxx,\ ./Source/cmGlobalVisualStudio10Generator.cxx,\ ./Source/cmExportBuildFileGenerator.cxx,\ ./Source/cmExportInstallAndroidMKGenerator.cxx,\ ./Source/cmExportInstallFileGenerator.cxx,\ ./Source/cmExportSet.cxx,\ ./Source/cmExportTryCompileFileGenerator.cxx,\ ./Source/cmFindPackageCommand.cxx,\ ./Source/cmInstallCommand.cxx,\ ./Source/cmGeneratorExpressionLexer.cxx,\ ./Source/cmLocalVisualStudio7Generator.cxx,\ ./Source/cmOrderDirectories.cxx,\ ./Source/cmTarget.cxx,\ ./Source/kwsys/*,\ ./Source/QtDialog/CMakeSetupDialog.ui,\ ./Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx,\ ./Source/CTest/cmParseCoberturaCoverage.h,\ ./Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/German.license.txt,\ ./Tests/RunCMake/CPack/tests/DMG_SLA/German.menu.txt,\ ./Tests/RunCMake/GoogleTest/xml_output.cpp,\ ./Tests/RunCMake/Make/TargetMessages*,\ ./Utilities/*,\ " \ -L "\ dependees,\ endwhile,\ fo,\ filetest,\ helpfull,\ nd,\ objext,\ stoll,\ supercedes,\ superceded,\ vas,\ varn,\ " ```
* | | Merge topic 'bootstrap-system-http2'Brad King2020-07-211-2/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 64bc82bb4d bootstrap: Add options to control use of system nghttp2 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Christoph Grüninger <foss@grueninger.de> Merge-request: !5031
| * | bootstrap: Add options to control use of system nghttp2Brad King2020-07-201-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Add `bootstrap` options needed since commit 0b872fd4be (nghttp2: Build the library within CMake for use by our curl, 2020-04-01, v3.18.0-rc1~408^2~2). Fixes: #20987
* | | STL Support: Add cm::filesystem::path in <cm/filesystem>Marc Chevrier2020-07-091-1/+3
| | |
* | | STL Support: introduce dedicated configuration fileMarc Chevrier2020-07-091-0/+3
| | |
* | | bootstrap: Add option to use system libuv during bootstrapJulien Schueller2020-07-061-14/+28
| | | | | | | | | | | | | | | | | | | | | Support bootstrapping on older systems where our bundled version libuv does not compile (.e.g Centos5, see #19086 and #19311). Add a `--bootstrap-system-libuv` option to use the system-provided libuv even for the bootstrap binary itself.
* | | cmStandardLevelResolver: Added to handle standard level queriesRobert Maynard2020-07-011-0/+1
|/ / | | | | | | Refactored out of cmMakefile
* | Update links to gitlab.kitware.com repos to add `-/`Brad King2020-05-261-1/+1
| | | | | | | | | | | | GitLab now uses a `/-/` component between the `group/project` part of the URL and the `{issues,merge_requests,tree}` part so that it can support `group/subgroup/project` with arbitrary depth.
* | cmPropertyDefinitionMap: simplify and shortenTushar Maheshwari2020-05-151-1/+0
| |
* | bootstrap: update list of problematic filesMarc Chevrier2020-05-071-2/+6
| |
* | bootstrap: Prefer “test … && test …” over “test … -a …”Issam Maghni2020-05-051-3/+3
| | | | | | | | From https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
* | bootstrap: Prefer “test …” over “[ … ]”Issam Maghni2020-05-051-63/+63
| | | | | | | | The former is more portable.
* | Merge topic 'bootstrap-solaris-tr'Brad King2020-05-051-1/+1
|\ \ | |/ | | | | | | | | | | 9febdd8205 bootstrap: Use 'tr' more portably Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4703
| * bootstrap: Use 'tr' more portablyBrad King2020-05-041-1/+1
| | | | | | | | | | | | | | | | Since commit 380bd70cc2 (bootstrap: implement cmake_toupper() using tr, 2017-06-07, v3.10.0-rc1~548^2~2) we use `tr` to convert from lower to upper case. However, the character classes `[:lower:]` and `[:upper:]` result in a "Bad string" error message on Solaris. Use `[a-z]` and `[A-Z]` instead.
* | Clang: Refactor CXX standard flags into __compiler_clang_cxx_standards()Raul Tambre2020-04-071-2/+10
| | | | | | | | | | | | | | These standard flags are the same for CXX, OBJCXX and CUDA. Refactor them into a single macro to reduce duplication and so we can easily reuse them. Updated bootstrap script to search in the general Clang module instead of the language-specific.
* | bootstrap: Tolerate trailing content in CMakeVersion.cmake componentsjjYBdx4IL2020-03-171-1/+1
|/ | | | On CYGWIN, tolerate DOS linefeeds in `Source/CMakeVersion.cmake`.
* Bootstrap: take care of C++ features configurationMarc Chevrier2020-02-011-0/+24
|
* bootstrap: Build with Release config by default to get optimizationsBrad King2020-01-091-0/+1
| | | | Fixes: #20197
* bootstrap: Extend C++17 check for our cast functionsBrad King2019-12-141-1/+11
| | | | | | | In commit fc3b4caa2e (Memory management: cast functions for managed pointers, 2019-11-18) we added a check to `Source/Checks/cm_cxx17_check.cpp` to avoid using C++17 mode on a compiler that does not support all our C++17 usage. Add the check to our bootstrap script too.
* Merge branch 'backport-3.16-toc_on_ppc' into toc_on_ppcBrad King2019-12-091-0/+1
|\
| * bootstrap: Add target_link_options commandAlexander Grund2019-12-091-0/+1
| |
* | cmLocalGenerator: Refactor to use cmMakeSingleCommandLineDaniel Eiband2019-11-241-0/+1
| |
* | Merge topic 'bootstrap-break'Brad King2019-10-301-2/+2
|\ \ | |/ | | | | | | | | | | 1dbf485934 bootstrap: Avoid redundant compiler selection checks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3959
| * bootstrap: Avoid redundant compiler selection checksBrad King2019-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | In commit 6e613ff399 (bootstrap: Add infrastructure to detect threading flags, 2017-11-28, v3.11.0-rc1~281^2~1) an extra level of nesting was added to the selection loop, but the inner-most `break` command used to exit the loop on success was not updated. This caused the outer-most loop to iterate unnecessarily and repeatedly try the same compilers again. In the case of compilers requiring a `-std=` flag, this may have caused the oldest standard to be used instead of the newest.
* | Graphviz: added test suite, fixes, enhancementsCorentin Plouet2019-10-081-0/+1
|/ | | | | | | | | | | | | | | | | | | | * Added a fairly comprehensive test suite * Separated the graph traversal logic from the Graphviz generation code by introducing a new class, cmLinkItemsGraphVisitor{.h,cxx} * Made the graph traversal logic less ad-hoc by using existing methods in the GlobalGenerator; this fixed a few bugs * Added support for new target types: custom targets, object and unknown libraries * Improved support for ALIAS libraries by showing the alias(es) in the graph * Introduced new flags to control those new libraries (consistent with existing flags) * Updated the documentation * Removed useless setting to set graph type in dot file * Improved the node/edge shapes (nicer, more consistent) * Added a legend to the graph * Some refactoring and cleanup of the Graphviz generation code * Added test and fix for issue 19746
* Merge topic 'add-custom-target-byproduct-checks'Brad King2019-09-261-0/+1
|\ | | | | | | | | | | | | | | | | fd3a394614 add_custom_command: Format files in error message in a single line a1cc6b4447 add_custom_target: Add output checks for custom target byproducts cbb861ade8 add_custom_command: Add tests for custom command output checks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3850
| * add_custom_target: Add output checks for custom target byproductsDaniel Eiband2019-09-231-0/+1
| | | | | | | | | | Use the output checks for byproducts of add_custom_command also for byproducts of add_custom_target.
* | Merge topic 'HP-UX_Port_GCC'Brad King2019-09-231-0/+11
|\ \ | |/ |/| | | | | | | | | | | | | ba315f2035 bootstrap: Require GCC 4.9 or higher on HP-UX 5ffb2dbff6 libuv: Add partial port to HP-UX 1059f9a96d jsoncpp: Fix compilation on HP-UX 11.31 ia64 with GCC 4.9.3 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3508
| * bootstrap: Require GCC 4.9 or higher on HP-UXBrad King2019-09-201-0/+8
| | | | | | | | | | | | | | | | | | | | | | Revise for future removal of the early rejection checks on HP-UX. Our code may now work with GCC 4.9 on HP-UX when manually using `env CXXFLAGS=-D_GLIBCXX_USE_C99` to make the C++11 `std::to_string` available on this platform. However, without nightly testing we cannot officially enable support for the platform. Issue: #17137 Co-Author: Earle Lowe <elowe@elowe.com>
| * libuv: Add partial port to HP-UXEarle Lowe2019-09-201-0/+3
| | | | | | | | | | Port enough of libuv to HP-UX 11.31 ia64 with GCC 4.9.3 to work for CMake.
* | Merge topic 'cmake-system-headers'Brad King2019-09-201-3/+25
|\ \ | |/ |/| | | | | | | | | | | 4a08690ccf cmstd: Extend header <cm/iterator> c688b401d3 cmstd: Modernize CMake system headers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3776
| * cmstd: Modernize CMake system headersMarc Chevrier2019-09-201-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a standardized way to handle the C++ "standard" headers customized to be used with current CMake C++ standard constraints. Offer under directory `cm` headers which can be used as direct replacements of the standard ones. For example: #include <cm/string_view> can be used safely for CMake development in place of the `<string_view>` standard header. Fixes: #19491
* | cmExportSet: subsume cmExportSetMap source filesTushar Maheshwari2019-09-191-1/+0
|/