summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/ObjectLibrary/PreLink.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/PreLink.cmake')
-rw-r--r--Tests/RunCMake/ObjectLibrary/PreLink.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/PreLink.cmake b/Tests/RunCMake/ObjectLibrary/PreLink.cmake
new file mode 100644
index 000000000..b88905511
--- /dev/null
+++ b/Tests/RunCMake/ObjectLibrary/PreLink.cmake
@@ -0,0 +1,4 @@
+add_library(A OBJECT a.c)
+add_custom_command(TARGET A PRE_LINK
+ COMMAND ${CMAKE_COMMAND} -E echo "A pre-link"
+ )