diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-06-14 14:25:29 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-06-24 14:22:15 (GMT) |
commit | ff015ee11e66388f50f9a1350e2731e7a240ccb1 (patch) | |
tree | 9774652c1b86df3287def9599276c8827a1cd4e9 /Tests/RunCMake/Languages/link-libraries-TARGET_FILE-genex-ok.cmake | |
parent | b58aff90c5a3633ae7fa0d78731433d40a02d8bd (diff) | |
download | CMake-ff015ee11e66388f50f9a1350e2731e7a240ccb1.zip CMake-ff015ee11e66388f50f9a1350e2731e7a240ccb1.tar.gz CMake-ff015ee11e66388f50f9a1350e2731e7a240ccb1.tar.bz2 |
Genex: Report error if a target file is needed to evaluate link libraries.
Constructs such as
target_link_libraries(foo $<$<STREQUAL:$<TARGET_FILE:foo>,foo.so>:bar>)
segfault before this patch.
Diffstat (limited to 'Tests/RunCMake/Languages/link-libraries-TARGET_FILE-genex-ok.cmake')
-rw-r--r-- | Tests/RunCMake/Languages/link-libraries-TARGET_FILE-genex-ok.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/Languages/link-libraries-TARGET_FILE-genex-ok.cmake b/Tests/RunCMake/Languages/link-libraries-TARGET_FILE-genex-ok.cmake new file mode 100644 index 0000000..f0fd6e5 --- /dev/null +++ b/Tests/RunCMake/Languages/link-libraries-TARGET_FILE-genex-ok.cmake @@ -0,0 +1,6 @@ + +enable_language(CXX) + +add_library(foo SHARED empty.cpp) +add_library(bar SHARED empty.cpp) +target_link_libraries(foo $<$<STREQUAL:$<TARGET_FILE:bar>,anything>:bar>) |