summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/export/DependOnNotExport.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/export/DependOnNotExport.cmake')
-rw-r--r--Tests/RunCMake/export/DependOnNotExport.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/export/DependOnNotExport.cmake b/Tests/RunCMake/export/DependOnNotExport.cmake
new file mode 100644
index 000000000..06c1ad951
--- /dev/null
+++ b/Tests/RunCMake/export/DependOnNotExport.cmake
@@ -0,0 +1,4 @@
+add_library(notexported INTERFACE)
+add_library(exported INTERFACE)
+target_link_libraries(exported INTERFACE notexported)
+export(TARGETS exported FILE "${CMAKE_CURRENT_BINARY_DIR}/exports.cmake")