summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'print-correct-line-number'Brad King2019-06-044-2/+8
|\ | | | | | | | | | | | | 3475e2728b cmListFileCache: When missing ending ) print starting line instead of last one Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3398
| * cmListFileCache: When missing ending ) print starting line instead of last oneBartosz Kosiorek2019-06-034-2/+8
| | | | | | | | Fixes: #19301
* | Merge topic 'better_error_message_for_visibility_preset_property'Brad King2019-06-041-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 619416f8a3 The error message for VISIBILITY_PRESET now documents valid options. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3409
| * | The error message for VISIBILITY_PRESET now documents valid options.Robert Maynard2019-06-031-1/+1
| |/ | | | | | | | | Rather than just state the value for VISIBILITY_PRESET was invalid, we additionally list the accepted values.
* | Tests: Fix RunCMake.CommandLine test to use generator in no-S-B caseBrad King2019-06-031-4/+6
|/ | | | | | | Apply the fix from commit baed22c4b0 (Tests: Fix RunCMake.CommandLine test to use generator with -S and -B, 2019-04-10) to the `no-S-B` case too. It also generates a build system and should use the generator being tested.
* Merge topic 'vs-add-package-reference'Brad King2019-05-313-0/+44
|\ | | | | | | | | | | | | | | 42e14d90b1 VS: Added support for VS package references for nuget Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Leonid Pospelov <pospelovlm@yandex.ru> Merge-request: !3389
| * VS: Added support for VS package references for nugetKinan Mahdi2019-05-303-0/+44
| |
* | Merge topic 'tar-zstd-compression'Brad King2019-05-302-0/+11
|\ \ | | | | | | | | | | | | | | | | | | 53cb1f2d04 cmake: Teach cmake -E tar command, Zstandard compression Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3357
| * | cmake: Teach cmake -E tar command, Zstandard compressionBartosz Kosiorek2019-05-222-0/+11
| | | | | | | | | | | | Fixes #18657
* | | Merge topic 'clang-gnulike-support'Brad King2019-05-295-2/+13
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 74829f01b1 Help: Add notes for topic 'clang-gnulike-support' 19669abe1d Tests: handle string escaping differences with NMake+clang a2a90f41e3 Tests: require C++14 for the Tutorial 4819ff9647 Tests: fix failures with gnu mode clang on windows 26af0b25e7 cmake: use correct stack size with gnu mode clang on windows d44c0db0b2 clang: setup correct configuration in gnu mode b7d5ef23e9 cmGlobalNinjaGenerator: use gnu compatible paths with clang in gnu mode 3d0210d8dc binutils: add the llvm-* variants to the tool lists. ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Francesco Bertolaccini <francesco@bertolaccini.dev> Acked-by: Stanislav Ershov <digital.stream.of.mind@gmail.com> Acked-by: Saleem Abdulrasool <compnerd@compnerd.org> Merge-request: !2992
| * | Tests: fix failures with gnu mode clang on windowsZsolt Parragi2019-05-245-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Root causes were: * Using incorrect conditions (assuming MSVC-like command line mode) * Trying to compile the MSVC STL in C++11 mode, when parts of it require C++14 or enabling MS extensions in clang. * Missing flush in a testcase using stdout in a dll and a main part with static crt
* | | cmake: tar: Allow selective extracting and listing of archivesBartosz Kosiorek2019-05-233-1/+44
| | |
* | | Merge topic 'genex-target-property-lifetime'Brad King2019-05-232-0/+19
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 5a1af142f1 Genex: Fix value lifetimes in nested TARGET_PROPERTY evaluation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3362
| * | | Genex: Fix value lifetimes in nested TARGET_PROPERTY evaluationBrad King2019-05-222-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For special properties like `INCLUDE_DIRECTORIES`, the pointer returned by `cmTarget::GetProperty` is only valid until the next time the same special property is queried on *any* target. When evaluating a nested `TARGET_PROPERTY` generator expression we may look up such a property more than once on different targets. Fix `TargetPropertyNode::Evaluate` to store the lookup result in locally owned memory earlier. Fixes: #19286
* | | | Merge topic 'framework-var'Brad King2019-05-232-6/+17
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 26ea022c3b Add variable CMAKE_FRAMEWORK Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3347
| * | | | Add variable CMAKE_FRAMEWORKRuslan Baratov2019-05-212-6/+17
| | |_|/ | |/| |
* | | | Merge topic 'default-generator-env'Brad King2019-05-2223-0/+122
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | d0f0ba0f7a Tests: Add environment generator tests a48ce8f4bf Help: Add documentation for default generator environment variables 083cf7e8a2 cmake: Allow default generator to be set by environment variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3218
| * | | Tests: Add environment generator testsEicke Herbertz2019-05-2223-0/+122
| | | |
* | | | file: Change REMOVE to ignore empty namesBrad King2019-05-213-0/+15
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously code like file(REMOVE_RECURSE "${accidentally_missing_variable}") treated the empty string as a relative path with respect to the current directory and removed its contents. Change this behavior to ignore the empty string with a warning instead. Normally such behavior changes are done with a policy, but in this case such code is likely a real bug in project code that can delete data. Fixes: #19274
* | | Merge topic 'ninja-swift'Brad King2019-05-202-1/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a9180ccf9a Tests: add a check for the Swift compiler d745551fb6 Help: add some initial documentation for Swift support 9a182c9e5b Auxiliary: update vim syntax highlighting e9b0063e8e Modules: add build rules for Swift Ninja support b6412e3e38 Ninja: add placeholders to support Swift build 7d7f31161d Ninja: add support for Swift's output-file-map.json d688c4c19d Swift: remove unnecessary unreleased Ninja infrastructure 0723582208 Swift: Detect compiler version ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3297
| * | | Tests: add a check for the Swift compilerSaleem Abdulrasool2019-05-172-1/+5
| | | | | | | | | | | | | | | | This ensures that the tests only run when the Swift compiler is present.
* | | | Merge topic 'file-install-follow-symlink-chain'Marc Chevrier2019-05-182-0/+169
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e3ff7ced63 file(INSTALL): Add FOLLOW_SYMLINK_CHAIN argument Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !3332
| * | | | file(INSTALL): Add FOLLOW_SYMLINK_CHAIN argumentKyle Edwards2019-05-162-0/+169
| |/ / /
* | | | Merge topic 'offer_compiler_lang_generator_expression'Brad King2019-05-1723-0/+117
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | e214abdaab Genex: Add COMPILE_LANG_AND_ID generator expression f84ed796a2 Docs: Generator-expressions remove usage of `CMake-id` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3300
| * | | Genex: Add COMPILE_LANG_AND_ID generator expressionRobert Maynard2019-05-1423-0/+117
| | | |
* | | | Merge topic 'msvc-jmc'Brad King2019-05-154-1/+71
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | 2a9ff9703e MSVC: Add support for /JMC (Just My Code) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3121
| * | | MSVC: Add support for /JMC (Just My Code)Luca Cappa2019-05-144-1/+71
| | | |
* | | | Merge topic 'ninja-pool-custom-command'Brad King2019-05-156-0/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9f76961de8 Support job pools in custom commands and targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3308
| * | | | Support job pools in custom commands and targetsRosen Matev2019-05-146-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a way for custom commands and targets to set the pool variable of the ninja build statement. Setting `JOB_POOL` is not compatible with `USES_TERMINAL`, which implies the `console` pool. The option is silently ignored with other generators. Closes: #18483
* | | | | Merge topic 'find-boost-cmp0093'Brad King2019-05-147-0/+12
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5108759ed2 FindBoost: Introduce CMP0093 to report Boost_VERSION in x.y.z format Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3317
| * | | | | FindBoost: Introduce CMP0093 to report Boost_VERSION in x.y.z formatDennis Klein2019-05-137-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | This aligns module mode behaviour with config mode.
* | | | | | Merge topic 'error-generate-step'Brad King2019-05-1428-28/+84
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8cc04b1918 cmake: Display error if generate step fails Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !3304
| * | | | | | cmake: Display error if generate step failsKyle Edwards2019-05-1328-28/+84
| |/ / / / /
* | | | | | Merge topic 'ios-xctest-lookup'Brad King2019-05-142-0/+18
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | e9d128b789 Apple: Properly lookup XCTest for iOS and tvOS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3309
| * | | | | Apple: Properly lookup XCTest for iOS and tvOSGregor Jasny2019-05-112-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | Closes: #19172
* | | | | | Merge topic 'FindPython-module'Marc Chevrier2019-05-101-1/+1
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 30b873c05d FindPython*: Manage weak link for Python modules Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !3291
| * | | | | FindPython*: Manage weak link for Python modulesMarc Chevrier2019-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new target Python::Module which take care of platform requirements for Python module development. Fixes: #18100
* | | | | | Merge topic 'FindBoost-fphsa'Brad King2019-05-0846-3/+977
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 634f6ea159 FindBoost: Add new unit tests a22dd5d8be FindBoost: Modernize module mode with FPHSA a315977595 FindBoost: Fix and modernize config mode with FPHSA 24342d5ef7 FindBoost: Add vars Boost_VERSION_MACRO/MAJOR/MINOR/PATCH/COUNT 26634752d0 FindBoost: Introduce new imported target Boost::headers d6c12f374d FindBoost: Compare versions consistently against Boost_VERSION_STRING Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3243
| * | | | | FindBoost: Add new unit testsDennis Klein2019-05-0744-0/+974
| | | | | |
| * | | | | FindBoost: Fix and modernize config mode with FPHSADennis Klein2019-05-072-3/+3
| |/ / / / | | | | | | | | | | | | | | | Fixes: #19186
* | | | | Merge topic 'ctest-update-version-override'Craig Scott2019-05-083-5/+25
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2a34d0ac36 ctest: Add new variable CTEST_UPDATE_VERSION_OVERRIDE 7ddac95121 Help: cross-ref and wording of docs related to ctest_update() a0d04d8810 testing: Update terminology in ctest_update tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Merge-request: !3277
| * | | | ctest: Add new variable CTEST_UPDATE_VERSION_OVERRIDEZack Galbreath2019-05-072-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | Set this in a CTest script to explicitly define what the current revision will be reported as in Update.xml.
| * | | | testing: Update terminology in ctest_update testsZack Galbreath2019-05-022-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the word "Update" instead of "Test" in ctest_update's RunCMake tests. This change was prompted because I noticed that UpdateChangeId-check.cmake was not actually getting called during the relevant test case. This file also had to be updated since its purpose is to detect an expected XML element (not an attribute).
* | | | | cmMakefile: Enforce explicit use of project() commandBartosz Kosiorek2019-05-061-0/+12
| |/ / / |/| | | | | | | | | | | Fixes: 17714
* | | | Merge topic 'std-pipes-always'Brad King2019-05-031-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c85524a94a Ensure stdin, stdout, and stderr pipes are always open Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !3282
| * | | | Ensure stdin, stdout, and stderr pipes are always openBrad King2019-05-021-0/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On non-Windows platforms libuv assumes that file descriptors 0-2 are always used for standard pipes and never for anything else. Otherwise, libuv may re-use one of these descriptors and then fail an assertion when closing it. Similarly, On Windows platforms our ConsoleBuf implementation assumes that the standard handles are always open. If CMake is run with any standard pipes closed, open them with `/dev/null` or `NUL` to satisfy these assumptions. Fixes: #19219
* | | | Merge topic 'jobs-positive-value'Brad King2019-05-039-0/+24
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6ad699358b cmake: --build -j <jobs> should not accept 0. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3255
| * | | | cmake: --build -j <jobs> should not accept 0.Fred Baksik2019-05-019-0/+24
| | | | | | | | | | | | | | | | | | | | Fixes #19059
* | | | | Genex: Update $<TARGET_FILE_BASE_NAME:...>: take care of POSTFIXMarc Chevrier2019-05-023-5/+71
| |/ / / |/| | | | | | | | | | | | | | | This capability complement MR !3190 and !3207 and is also needed to solve issue #18771.
* | | | Merge topic 'message-new-types-and-logging'Craig Scott2019-04-3016-0/+146
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 599587feb1 message(): Minor code modernization 6cc93b370e message(): Add support for log levels 377d1b7896 cmSystemTools: Remove unused message-related code, simplify logic Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !3268