7aa9e80e35
We use a special dedicated structure to store the LINK_LIBRARIES target property. Do not try to construct a string from a NULL value. Instead leave the property structure empty when no value is given. Reported-by: Ghyslain Leclerc <ghleclerc@gmail.com>
8 lines
330 B
CMake
8 lines
330 B
CMake
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()
|