summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/set_property/LINK_LIBRARIES.cmake
blob: 994e874ef8caf117ae392b922b01ae3481c6022b (plain)
1
2
3
4
5
6
7
add_custom_target(CustomTarget)
set_property(TARGET CustomTarget PROPERTY LINK_LIBRARIES)
set_property(TARGET CustomTarget APPEND PROPERTY LINK_LIBRARIES)
get_property(val TARGET CustomTarget PROPERTY LINK_LIBRARIES)
if (NOT "${val}" STREQUAL "")
  message(FATAL_ERROR "LINK_LIBRARIES value is '${val}' but should be ''")
endif()