diff options
author | Clifford Yapp <cliffyapp@gmail.com> | 2015-07-21 15:57:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-21 18:19:35 (GMT) |
commit | 45c5f8cad2f95ccfada50e1b65e56918f3c6c5c4 (patch) | |
tree | 8fbe532a2e45676c346f9c16a8500bede7c413fa /Tests | |
parent | 265b9db7c2c865c5aad821bf9a377ea84dfe431e (diff) | |
download | CMake-45c5f8cad2f95ccfada50e1b65e56918f3c6c5c4.zip CMake-45c5f8cad2f95ccfada50e1b65e56918f3c6c5c4.tar.gz CMake-45c5f8cad2f95ccfada50e1b65e56918f3c6c5c4.tar.bz2 |
Add SOURCE_DIR and BINARY_DIR target properties
This will allow project code to recover the directory information about
where a target was created.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/get_property/target_properties-stderr.txt | 6 | ||||
-rw-r--r-- | Tests/RunCMake/get_property/target_properties.cmake | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Tests/RunCMake/get_property/target_properties-stderr.txt b/Tests/RunCMake/get_property/target_properties-stderr.txt index d0981ac..6b3c6ca 100644 --- a/Tests/RunCMake/get_property/target_properties-stderr.txt +++ b/Tests/RunCMake/get_property/target_properties-stderr.txt @@ -3,4 +3,8 @@ get_property: --><-- get_target_property: -->value<-- get_property: -->value<-- get_target_property: -->gtp_val-NOTFOUND<-- -get_property: --><--$ +get_property: --><-- +get_target_property: -->(.*)/Tests/RunCMake/get_property<-- +get_property: -->(.*)/Tests/RunCMake/get_property<-- +get_target_property: -->(.*)/Tests/RunCMake/get_property/target_properties-build<-- +get_property: -->(.*)/Tests/RunCMake/get_property/target_properties-build<--$ diff --git a/Tests/RunCMake/get_property/target_properties.cmake b/Tests/RunCMake/get_property/target_properties.cmake index c5a141d..9ff833a 100644 --- a/Tests/RunCMake/get_property/target_properties.cmake +++ b/Tests/RunCMake/get_property/target_properties.cmake @@ -14,3 +14,5 @@ set_target_properties(tgt PROPERTIES empty "" custom value) check_target_property(tgt empty) check_target_property(tgt custom) check_target_property(tgt noexist) +check_target_property(tgt SOURCE_DIR) +check_target_property(tgt BINARY_DIR) |