summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Rename cmProp in cmValueMarc Chevrier2021-09-211-28/+28
|
* Use new AddCacheEntry signaturesMarc Chevrier2021-09-101-32/+26
|
* AddCacheEntry accept cmProp or std::stringMarc Chevrier2021-09-101-1/+1
|
* Enhancement: SetProperty accept cmProp or std::stringMarc Chevrier2021-08-251-0/+4
| | | | | Methods SetProperty of classes cmPropertyMap, cmStateDirectory and cmMakefile accept now cmProp or std::string as argument.
* Fix build on Android (host)leha-bot2021-08-131-2/+4
|
* cmake: Model normal and try-compile project kinds explicitlyBrad King2021-07-121-11/+6
| | | | | Construct with the project kind instead of mutating state after construction.
* cmState: Construct with modeBrad King2021-07-121-2/+1
|
* CMakePresets.json: Make --list-presets show presets with no generatorKyle Edwards2021-07-061-0/+3
| | | | Fixes: #22389
* VS: Add Visual Studio 17 2022 generatorBrad King2021-06-251-1/+5
| | | | Fixes: #22339
* Merge topic 'presets-build-fixes'Brad King2021-06-091-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | de2b14a711 Merge branch 'backport-3.20-presets-build-fixes' into presets-build-fixes 534c40e6d8 presets: Fix buildPreset "targets" not allowing a single string 5d67632813 presets: Fix buildPreset "jobs" 93e396b402 presets: Fix buildPreset "jobs" field test case efe7ac9022 presets: Fix buildPreset "targets" not allowing a single string Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !6190
| * Merge branch 'backport-3.20-presets-build-fixes' into presets-build-fixesSam Freed2021-06-081-1/+3
| |\
| | * presets: Fix buildPreset "jobs"Sam Freed2021-06-081-1/+3
| | | | | | | | | | | | Fixes: #22273
* | | HIP: Add language to CMakeRobert Maynard2021-06-071-0/+3
| | |
* | | cmake: Allow CMAKE_TOOLCHAIN_FILE to be set by environment variableBrad King2021-06-031-0/+10
|/ / | | | | | | | | When no `CMAKE_TOOLCHAIN_FILE` is explicitly specified while creating a new build tree, check for an environment variable of the same name.
* | cmake-gui: Unset empty CC,CXX on global generator changeJake Cobb2021-05-241-3/+6
| | | | | | | | | | | | | | | | | | | | | | On subsequent runs of configure from cmake-gui the global generator is swapped. So on runs other than the first it was setting CC and CXX to empty when they were otherwise undefined. Instead, restore them if non-empty and unset them if empty when changing the global generator and a previous generator exists. Fixes: #21449
* | cmCommandLineArgument: Understands which commands require partial matchingRobert Maynard2021-05-191-24/+42
| | | | | | | | | | Allows us to provide better error messages when commands such as `--target` are passed invalid input.
* | class cmake: Store working directory at cmake launchMarc Chevrier2021-05-111-1/+2
| |
* | Merge topic 'cmprop-nullptr'Brad King2021-05-111-4/+2
|\ \ | | | | | | | | | | | | | | | | | | ce97b7909b Source: Remove unnecessary comparisons to nullptr Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6112
| * | Source: Remove unnecessary comparisons to nullptrVitaly Stakhovsky2021-05-101-4/+2
| | |
* | | Merge topic 'capabilties-generator-platforms'Brad King2021-05-111-0/+7
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 66be34853c cmake: add supported platforms to cmake -E capabilties report Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6102
| * | cmake: add supported platforms to cmake -E capabilties reportscheffle2021-05-101-0/+7
| | |
* | | Source: Fix typos and spelling in commentsJosef Angstenberger2021-05-071-1/+1
|/ /
* | cmake-presets: Introduce `toolchainFile` preset optionRobert Maynard2021-04-281-0/+7
| | | | | | | | | | In v3 of the presets, the `--toolchain` command line argument now has a preset mapping.
* | cmake: Improve error message when failing to update generation timestampBrad King2021-04-211-2/+6
| | | | | | | | | | | | Include the underlying system error description. Issue: #21571, #22086
* | Merge topic 'mrjoel/add-missing-not'Brad King2021-04-191-3/+3
|\ \ | |/ | | | | | | | | | | 370bebd921 Add missing 'not' in error messages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6012
| * Add missing 'not' in error messagesJoel Johnson2021-04-161-3/+3
| |
* | Merge topic 'add_toolchain_cmake_option'Brad King2021-04-161-0/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | d5c3e4ac32 cmake: add support for --toolchain command argument 13838bbb36 CMAKE_TOOLCHAIN_FILE: Document relative path behavior Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5991
| * | cmake: add support for --toolchain command argumentRobert Maynard2021-04-151-0/+14
| | |
* | | cmake-presets: Make generator and binaryDir fields optionalfriendlyanon2021-04-061-3/+6
|/ / | | | | | | | | | | | | | | In v3 of the presets, generator and buildDir can be omitted to fall back to regular cmake behavior when these values are not explicitly provided by the user. Fixes: #21987
* | Merge topic 'cmake-presets-condition'Brad King2021-03-231-0/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 8bc5c8961e CMakePresets.json: Add the ability to conditionally disable presets ce6ea7c927 Refactor: Move some common code into separate file ebbd475e54 Refactor: Move cmCMakePresetsFile::ReadJSON into a separate file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5919
| * | CMakePresets.json: Add the ability to conditionally disable presetsKyle Edwards2021-03-221-0/+13
| | |
* | | Treat '.ixx' and '.cppm' files as C++ sourcesAndrew Gilewsky2021-03-221-3/+3
|/ / | | | | | | | | These extensions are used by convention for C++ modules and interface units with MSVC.
* | cmake: configure preset add support for --install-prefix mappingRobert Maynard2021-03-091-3/+17
| |
* | cmake: add support for --install-prefix command argumentRobert Maynard2021-03-041-0/+17
| | | | | | | | Fixes: #21781
* | cmLocalGenerator: Clarify GetIncludeFlags signatureBrad King2021-02-251-1/+1
|/ | | | | | | | | | | | | Make the `config` argument non-optional so all callers must be explicit. Convert the path style argument to an enumeration to make its role clear at call sites. The path style argument is implemented by `ConvertToIncludeReference`, which was introduced with the Ninja generator by commit 5b114c9bee (Introduce a cmLocalGenerator::ConvertToIncludeReference function, 2011-09-07, v2.8.7~187^2~4). Its only purpose is to allow the Ninja generator to use relative paths in `-I` flags. Add a comment explaining this role.
* cmake-presets: Add build and test presetsSam Freed2021-02-011-54/+170
| | | | Fixes: #21391
* Merge topic 'cpp-modules'Brad King2021-01-071-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 39cbbb59a5 ninja: add experimental infrastructure to generate gcc-format modmap files 791b4d26d6 ninja: add experimental infrastructure to generate modmap files with dyndep 4b23359117 ninja: Add experimental infrastructure for C++20 module dependency scanning f814d3b3c6 cmNinjaTargetGenerator: use $OBJ_FILE for the object b0fc2993e1 Treat the '.mpp' file extension as C++ code 988f997100 cmScanDepFormat: Fix name of our internal tool in parse errors dacd93a2db ninja: De-duplicate version numbers required for ninja features 533386ca29 cmStandardLevelResolver: Factor out helper to capture stoi exceptions Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Acked-by: Shannon Booth <shannon.ml.booth@gmail.com> Merge-request: !5562
| * Treat the '.mpp' file extension as C++ codeBen Boeckel2021-01-051-2/+3
| | | | | | | | This is the extension required in build2 for C++ module support.
* | cmake: Use shared parsing code for all cmake argv parsingRobert Maynard2021-01-061-121/+4
|/
* Merge topic 'install-properties'Brad King2020-12-141-0/+2
|\ | | | | | | | | | | | | 63db7ae9c4 cmake: Clear INSTALL file properties between runs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5603
| * cmake: Clear INSTALL file properties between runsBrad King2020-12-111-0/+2
| | | | | | | | | | | | | | | | Do not keep state across separate project configurations. This is particularly important in `cmake-gui` where those configurations can be for separate projects. Fixes: #21580
* | cmake: Error out on unknown arguments starting with `-`.Robert Maynard2020-12-011-1/+21
| | | | | | | | Fixes: #21521
* | cmake: Simplify -W recognition of no- and error= prefixesBrad King2020-11-191-9/+7
| |
* | cmake: redesign command-line argument parsingRobert Maynard2020-11-191-367/+548
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make handling more consistent: "-S" -> invalid "-S/path/to/source" -> valid "-S /path/to/source" -> valid "-S=/path/to/source" -> now valid "-D" -> invalid "-DStr" -> valid "-D Str" -> valid "-D=Str" -> now valid "--log-level=" -> invalid "--log-level" -> invalid "--log-level=2" -> valid "--log-level 2" -> now valid
* | cmake: Fix processing of -Wno-error= flagsBrad King2020-11-171-3/+8
| | | | | | | | | | Fix two bugs that happened to cancel each other out for cases covered by our test suite. Add a test case that distinguishes them.
* | Reduce the scope of temporary cmProp variables and other improvementsVitaly Stakhovsky2020-11-051-2/+1
| |
* | Merge topic 'cmake-presets-no-path-arg-warning'Brad King2020-11-031-1/+7
|\ \ | |/ | | | | | | | | | | cb2d01c182 CMakePresets.json: Don't warn if no path argument is given Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5455
| * CMakePresets.json: Don't warn if no path argument is givenKyle Edwards2020-11-021-1/+7
| | | | | | | | | | | | | | | | | | If --preset is specified with no path argument, use the current directory as the source directory, the preset's binaryDir as the binary directory, and don't issue the standard warning for no path specified. Fixes: #21386
| * Merge topic 'cmake-presets-path-arg' into release-3.19Craig Scott2020-10-271-1/+3
| |\ | | | | | | | | | | | | | | | | | | b7d7eca66d CMakePresets.json: Rework how --preset argument is handled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5416
| * \ Merge topic 'correct_profiling-output_exception' into release-3.19Brad King2020-10-261-3/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | afac7482d2 cmake: command arguments which use '=' behave consistently Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5414