summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/InterfaceLibrary/ConfigSources.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/InterfaceLibrary/ConfigSources.cmake')
-rw-r--r--Tests/RunCMake/InterfaceLibrary/ConfigSources.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/InterfaceLibrary/ConfigSources.cmake b/Tests/RunCMake/InterfaceLibrary/ConfigSources.cmake
new file mode 100644
index 0000000..631a845
--- /dev/null
+++ b/Tests/RunCMake/InterfaceLibrary/ConfigSources.cmake
@@ -0,0 +1,2 @@
+# Test an interface library added to the build system by a per-config source.
+add_library(iface INTERFACE $<$<CONFIG:NotAConfig>:${CMAKE_CURRENT_SOURCE_DIR}/iface.c>)