summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompatibleInterface/InterfaceString-Bool-Conflict.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-06 23:47:31 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-02-07 15:21:09 (GMT)
commit655e98bf7149eb3757a0587409076326edeb9c04 (patch)
tree71053ab3498e53f16c5800314326f3408a6586ea /Tests/RunCMake/CompatibleInterface/InterfaceString-Bool-Conflict.cmake
parent46e28960a58a25bbf0124b6ab95eda24cc4fe1a4 (diff)
downloadCMake-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.cmake9
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)