summaryrefslogtreecommitdiffstats
path: root/Tests/CSharpOnly
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-23 14:55:12 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-23 14:58:42 (GMT)
commitd004d8c59a6daa5b27c6e737b687793f51557704 (patch)
tree39e8443bee8953fdae769bc64738a5a4486b123a /Tests/CSharpOnly
parentfd02538974dd952a8639d371c2c0067d30d5469a (diff)
downloadCMake-d004d8c59a6daa5b27c6e737b687793f51557704.zip
CMake-d004d8c59a6daa5b27c6e737b687793f51557704.tar.gz
CMake-d004d8c59a6daa5b27c6e737b687793f51557704.tar.bz2
VS: Fix crash on CSharp sources in a custom target
The target generator does not compute ClOptions for custom targets, so we should not use them either. Fixes: #18377, #18485
Diffstat (limited to 'Tests/CSharpOnly')
-rw-r--r--Tests/CSharpOnly/CMakeLists.txt3
-rw-r--r--Tests/CSharpOnly/empty.cs0
-rw-r--r--Tests/CSharpOnly/empty.txt0
3 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CSharpOnly/CMakeLists.txt b/Tests/CSharpOnly/CMakeLists.txt
index 0e3e39e..84b58ca 100644
--- a/Tests/CSharpOnly/CMakeLists.txt
+++ b/Tests/CSharpOnly/CMakeLists.txt
@@ -8,3 +8,6 @@ add_library(lib2 SHARED lib2.cs)
add_executable(CSharpOnly csharponly.cs)
target_link_libraries(CSharpOnly lib1 lib2)
+
+add_custom_target(CSharpCustom SOURCES empty.cs)
+add_custom_target(custom.cs DEPENDS empty.txt)
diff --git a/Tests/CSharpOnly/empty.cs b/Tests/CSharpOnly/empty.cs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/CSharpOnly/empty.cs
diff --git a/Tests/CSharpOnly/empty.txt b/Tests/CSharpOnly/empty.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/CSharpOnly/empty.txt