CMake/Tests/RunCMake/ObjectLibrary/PreLink.cmake

5 lines
116 B
CMake

add_library(A OBJECT a.c)
add_custom_command(TARGET A PRE_LINK
COMMAND ${CMAKE_COMMAND} -E echo "A pre-link"
)