diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-02-06 23:47:31 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-02-07 15:21:09 (GMT) |
commit | 655e98bf7149eb3757a0587409076326edeb9c04 (patch) | |
tree | 71053ab3498e53f16c5800314326f3408a6586ea /Tests/RunCMake/CompatibleInterface/InterfaceString-Bool-Conflict.cmake | |
parent | 46e28960a58a25bbf0124b6ab95eda24cc4fe1a4 (diff) | |
download | CMake-655e98bf7149eb3757a0587409076326edeb9c04.zip CMake-655e98bf7149eb3757a0587409076326edeb9c04.tar.gz CMake-655e98bf7149eb3757a0587409076326edeb9c04.tar.bz2 |
Ensure type specific compatible interface properties do not intersect.
Before, the boolean version would always win, and the string one would
be ignored.
Diffstat (limited to 'Tests/RunCMake/CompatibleInterface/InterfaceString-Bool-Conflict.cmake')
-rw-r--r-- | Tests/RunCMake/CompatibleInterface/InterfaceString-Bool-Conflict.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompatibleInterface/InterfaceString-Bool-Conflict.cmake b/Tests/RunCMake/CompatibleInterface/InterfaceString-Bool-Conflict.cmake new file mode 100644 index 0000000..711368a --- /dev/null +++ b/Tests/RunCMake/CompatibleInterface/InterfaceString-Bool-Conflict.cmake @@ -0,0 +1,9 @@ + +add_library(foo UNKNOWN IMPORTED) +add_library(bar UNKNOWN IMPORTED) + +set_property(TARGET foo APPEND PROPERTY COMPATIBLE_INTERFACE_BOOL SOMETHING) +set_property(TARGET foo APPEND PROPERTY COMPATIBLE_INTERFACE_STRING SOMETHING) + +add_executable(user main.cpp) +target_link_libraries(user foo bar) |