summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorSumit Bhardwaj <bhardwajs@outlook.com>2022-02-01 15:02:13 (GMT)
committerSumit Bhardwaj <bhardwajs@outlook.com>2022-02-01 15:18:03 (GMT)
commit5ee3154f651428b1a57d0d87be4e462728446842 (patch)
tree6b889e2b94b8a8febdc8759466324084fac85c44 /Tests/RunCMake
parent0294570d06a1ad884fa1f88ab5af682829cd6607 (diff)
downloadCMake-5ee3154f651428b1a57d0d87be4e462728446842.zip
CMake-5ee3154f651428b1a57d0d87be4e462728446842.tar.gz
CMake-5ee3154f651428b1a57d0d87be4e462728446842.tar.bz2
VS: .Net SDK Style projects can add Reference to dlls
When support for `DOTNET_SDK` was added, only a minimal set of options were built in. Based on user feedback, support for reference to dlls (not just projects) is needed. That support is added here. Fixes: #23166
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake b/Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake
index 60066ab..c585f5e 100644
--- a/Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake
+++ b/Tests/RunCMake/VsDotnetSdk/VsDotnetSdk.cmake
@@ -15,4 +15,7 @@ add_executable(DotNetSdk csharponly.cs)
target_link_libraries(DotNetSdk dotNetSdkLib1)
set_target_properties(DotNetSdk
PROPERTIES
- VS_GLOBAL_RuntimeIdentifier win10-x64)
+ VS_GLOBAL_RuntimeIdentifier win10-x64
+
+ VS_DOTNET_REFERENCE_SomeDll
+ ${PROJECT_SOURCE_DIR}/SomeDll.dll)