diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-18 15:15:15 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-04-02 21:12:56 (GMT) |
commit | 5702e10677e72a75370e8c1bbe6f10fa5ad675a9 (patch) | |
tree | 0820653eda131344091b81e756120cf881ccf047 /Tests/RunCMake/CMP0051/CMP0051-OLD.cmake | |
parent | 857d30b52ef2fb011bad16249d34972fadae9b70 (diff) | |
download | CMake-5702e10677e72a75370e8c1bbe6f10fa5ad675a9.zip CMake-5702e10677e72a75370e8c1bbe6f10fa5ad675a9.tar.gz CMake-5702e10677e72a75370e8c1bbe6f10fa5ad675a9.tar.bz2 |
cmTarget: Include TARGET_OBJECTS genex in target SOURCES property.
Add policy CMP0051 to control this behavior.
Diffstat (limited to 'Tests/RunCMake/CMP0051/CMP0051-OLD.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0051/CMP0051-OLD.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0051/CMP0051-OLD.cmake b/Tests/RunCMake/CMP0051/CMP0051-OLD.cmake new file mode 100644 index 0000000..0243e94 --- /dev/null +++ b/Tests/RunCMake/CMP0051/CMP0051-OLD.cmake @@ -0,0 +1,10 @@ + +cmake_policy(SET CMP0051 OLD) + +add_library(objects OBJECT empty.cpp) + +add_library(empty empty.cpp $<TARGET_OBJECTS:objects>) + +get_target_property(srcs empty SOURCES) + +message("Sources: \"${srcs}\"") |