summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Always prefer the last source directory providedRobert Maynard2022-03-171-14/+5
| | | | Fixes: #23334
* cmake: Correct regression in `-B <dir> <src_dir>`Robert Maynard2022-03-021-1/+1
| | | | Fixes: #23285
* cmake: When given multiple source paths use last instead of firstRobert Maynard2022-02-171-5/+36
| | | | | | | | When given two source paths via `-S` or just directory paths prefer the last one. When the paths are mixed always prefer the last `-S` entry. Fixes: #23238
* Merge topic 'cmake-empty-cmd-line-arg' into release-3.23Brad King2022-02-171-2/+22
|\ | | | | | | | | | | | | | | f73457ca2e cmake: Ignore any empty "" command line arguments 67f97f5478 Tests: Add RunCMake helper to run cmake with raw execute_process args Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6980
| * cmake: Ignore any empty "" command line argumentsRobert Maynard2022-02-161-2/+22
| | | | | | | | | | | | | | Don't treat empty quote arguments("") as the current working directory but instead ignore them. Fixes #23217
* | cmake --build: prioritize --resolve-package-references over presetCarsten Rudolph2022-02-151-1/+2
|/ | | | Fixes: #23224
* Merge topic 'vs-package-restore'Brad King2022-01-241-5/+10
|\ | | | | | | | | | | | | | | | | | | 9aa7831f05 Presets: add resolve packages setting to build presets. b2f8f0bb87 cmGlobalVisualStudio10Generator: Auto restore NuGet packages. 193b8fca52 cmBuildOptions: Split build arguments into separate object. 6a10103493 Help: Update preset schema description for version 3 entries. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6761
| * Presets: add resolve packages setting to build presets.Carsten Rudolph2022-01-221-0/+4
| |
| * cmBuildOptions: Split build arguments into separate object.Carsten Rudolph2022-01-221-5/+6
| |
* | cmake: Warn about unnecessary paths on command lineRobert Maynard2022-01-201-5/+32
| | | | | | | | | | | | We can't make it an error as that would break existing behavior. Fixes: #23110
* | CMake: `-S` paths preferred over other provided pathsRobert Maynard2022-01-181-28/+26
|/ | | | | | | When cmake parses `cmake -S <path> <path>` treat the second path as the build directory. Likwise when invoked with `<path> -S <path>` treat the first path as the build path instead of using the current working directory.
* Refactor: Rename cmCMakePresetsFile to cmCMakePresetsGraphKyle Edwards2022-01-061-21/+21
| | | | And change all references to "file" to say "graph" instead.
* cmake: Add filtered debug-find optionsJohn Parent2021-12-171-2/+49
| | | | | | | | | | Add a `--debug-find-pkg=` option to debug find calls for specific packages. Add a `--debug-find-var=` option to debug find calls for specific return variables. Fixes: #21880
* cmMessenger: Make relative path conversion more explicitBrad King2021-12-081-0/+6
| | | | | Move the decision to convert to call stacks to relative paths out to the client. Avoid using `cmState` to make the decision ourselves.
* cmMessenger: Adopt backtrace printing functionsBrad King2021-12-081-2/+3
| | | | | | Move backtrace printing functions from `cmListFileBacktrace` over to `cmMessenger`, their primary caller. Thread `cmMessenger` instances through APIs needed to update other call sites.
* Source: fix -Wextra-semi-stmt warningsSean McBride2021-12-011-1/+1
|
* 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