summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/set_property
Commit message (Collapse)AuthorAgeFilesLines
* Testing: Update hard-coded line numbers to [0-9]+ in some testsKyle Edwards2018-10-101-7/+7
|
* LINK_DIRECTORIES: Add new properties and commandsMarc Chevrier2018-09-253-0/+6
| | | | | | | | | | | | These new capabilities enable to manage link directories Two new properties: * target properties: LINK_DIRECTORIES and INTERFACE_LINK_DIRECTORIES One new command * target_link_directories(): to populate target properties Fixes: #17215
* LINK_OPTIONS: Add new family of propertiesMarc Chevrier2018-06-063-0/+6
| | | | | | | | | | | | | | This family enable to manage link flags Three new properties: * directory property: LINK_OPTIONS * target properties: LINK_OPTIONS and INTERFACE_LINK_OPTIONS Two new commands * add_link_options(): to populate directory property * target_link_options(): to populate target properties Fixes: #16543
* Tests: Add tests for INHERITED property chainingCraig Scott2018-03-214-0/+134
|
* Add new target-property `IMPORTED_GLOBAL`.Deniz Bahadir2017-11-077-0/+141
| | | | | | | | | | | | | | | 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.
* cmTarget: Enforce TYPE being a read-only propertyGregor Jasny2017-01-094-0/+5
|
* Tests: Cover set_property for buildsystem directory propertiesBrad King2015-09-119-0/+22
| | | | | | | | | | | | Extend the RunCMake.set_property test with cases covering buildsystem directory properties: * COMPILE_DEFINITIONS * COMPILE_OPTIONS * INCLUDE_DIRECTORIES Also test a non-buildsystem property to document the equivalence in behavior.
* cmTarget: Only append non-empty values to buildsystem properties.Stephen Kelly2015-09-115-5/+5
| | | | | | This is a change in behavior from CMake 3.3, but there is no semantic meaning to empty entries in buildsystem properties. This also restores behavior to that of CMake 2.8.10.
* Tests: Cover set_property for buildsystem target propertiesBrad King2015-09-0316-7/+41
| | | | | | | | | | | | | | | | | Extend the RunCMake.set_property test with cases covering buildsystem target properties: * COMPILE_DEFINITIONS * COMPILE_FEATURES * COMPILE_OPTIONS * INCLUDE_DIRECTORIES * LINK_LIBRARIES * SOURCES Also test a non-buildsystem property to document the current difference in behavior. Refactor the existing LINK_LIBRARIES case to the same more-extensive test as the rest. Use the output generated by CMake 3.3 as the expected output for each test case.
* Tests: Move LINK_SEARCH_{START,END}_STATIC case to dedicated testBrad King2015-09-023-79/+0
| | | | | | | | | | The test case added to RunCMake.set_property by commit 675ef165 (Allow LINK_SEARCH_{START,END}_STATIC props to have default values, 2015-08-07) is not a test of the set_property command and so belongs in its own test case. Create a new RunCMake.LinkStatic test to cover cases related to static linking. While at it, simplify the LINK_SEARCH_STATIC test case to enable only C.
* Allow LINK_SEARCH_{START,END}_STATIC props to have default values.Chuck Atkins2015-08-133-0/+79
| | | | | | Use the CMAKE_LINK_SEARCH_START_STATIC and CMAKE_LINK_SEARCH_END_STATIC variables to initialize the LINK_SEARCH_START_STATIC and LINK_SEARCH_END_STATIC target properties respectively.
* set_property: Fix crash when setting LINK_LIBRARIES to nothingBrad King2015-07-083-0/+13
We use a special dedicated structure to store the LINK_LIBRARIES target property. Do not try to construct a string from a NULL value. Instead leave the property structure empty when no value is given. Reported-by: Ghyslain Leclerc <ghleclerc@gmail.com>