summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/get_property
Commit message (Collapse)AuthorAgeFilesLines
* set_source_files_properties: Allow specification of directory scopeAlexandru Croitor2020-05-144-0/+82
| | | | | | | | | | | | | | | | | | | | | | | Both set_source_files_properties() and set_property(SOURCE) now accept two new optional arguments: DIRECTORY and TARGET_DIRECTORY. The DIRECTORY option takes a list of relative or absolute paths pointing to processed source directories (add_subdirectory was already called on them). These paths specify directory scopes where the source file properties will be set. Previously the scope was always the currently processed source directory. Similarly TARGET_DIRECTORY takes a list of targets, whose source directories will be used as the list of scopes where to set the source file properties. get_property() and get_source_file_property() also get the same new arguments, except only one value can be specified instead of a list. Fixes: #20128
* Ninja: Add multi-config variantKyle Edwards2019-12-131-1/+1
| | | | Co-Authored-by: vector-of-bool <vectorofbool@gmail.com>
* Testing: Update hard-coded line numbers to [0-9]+ in some testsKyle Edwards2018-10-1013-13/+13
|
* Tests management: add TESTS directory propertyMarc Chevrier2018-02-083-1/+21
| | | | Implements: #17680
* GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in TestsCraig Scott2017-12-291-0/+4
|
* Add new target-property `IMPORTED_GLOBAL`.Deniz Bahadir2017-11-072-1/+14
| | | | | | | | | | | | | | | The purpose of this new `IMPORTED_GLOBAL` target-property is to prolong the lifetime and scope of `IMPORTED` targets in such a way as if they had been created with the keyword `GLOBAL` in the first place. * It can only be set to `TRUE`. That means, a local `IMPORTED` target can be promoted to global scope but a global `IMPORTED` target cannot be degraded to local scope! * Setting it to `TRUE` only succeeds if done from within the same directory in which the `IMPORTED` target was created in the first place. Fixes #17256.
* Tests: Add case for legacy source file property behaviorBrad King2017-09-252-1/+17
| | | | | | | | | | | | | The change in commit 3b95ab5693 (Performance: Improve efficiency of source file lookup in cmMakefile, 2017-08-17) broke some legacy behavior of source file properties in which the order sources are first resolved with extensions affects how setting properties without extensions works. It has been reverted for now, but the discovery was made after merging because the broken case was not covered by our test suite. Add a test case representing the legacy behavior. Issue: #15208
* Tests: Add case for GENERATOR_IS_MULTI_CONFIGBrad King2017-04-045-0/+11
|
* Add directory properties to get source and binary directoriesBrad King2016-09-192-1/+14
| | | | | | Add SOURCE_DIR and BINARY_DIR directory properties that return the absolute paths to the corresponding directories. These correspond to the target properties of the same names that we already have.
* Add directory property to list buildsystem targetsBrad King2016-09-193-1/+15
| | | | | Add a BUILDSYSTEM_TARGETS property to allow project code to traverse the list of its own targets in a given directory.
* Add a directory property to list subdirectoriesBrad King2016-09-195-1/+11
| | | | | Add a SUBDIRECTORIES directory property to allow project code to traverse the directory structure of itself as CMake sees it.
* Add SOURCE_DIR and BINARY_DIR target propertiesClifford Yapp2015-07-212-1/+7
| | | | | This will allow project code to recover the directory information about where a target was created.
* Tests: Move command failure cases into RunCMake infrastructureBrad King2015-07-1440-0/+96
| | | | | | | Move failure cases from the CMake.{If,List,While,GetProperty} tests over to the RunCMake.{if,list,while,get_property} tests to use the more modern infrastructure. This also avoids using REGEX_ESCAPE_STRING to try to regex-match full paths.
* Test expected value of DEBUG_CONFIGURATIONS global property.Stephen Kelly2015-04-123-0/+53
|
* tests: add tests for querying propertiesBen Boeckel2015-01-1116-0/+160