summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExcludeFromAll/error-on-mixed-config.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ExcludeFromAll/error-on-mixed-config.cmake')
-rw-r--r--Tests/RunCMake/ExcludeFromAll/error-on-mixed-config.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExcludeFromAll/error-on-mixed-config.cmake b/Tests/RunCMake/ExcludeFromAll/error-on-mixed-config.cmake
new file mode 100644
index 0000000..6c0ed1d
--- /dev/null
+++ b/Tests/RunCMake/ExcludeFromAll/error-on-mixed-config.cmake
@@ -0,0 +1,6 @@
+enable_language(C)
+
+set(CMAKE_CONFIGURATION_TYPES "Release;Debug" CACHE STRING "")
+
+add_executable(release_only_tool main.c)
+set_property(TARGET release_only_tool PROPERTY EXCLUDE_FROM_ALL "$<NOT:$<CONFIG:Release>>")