mirror of
https://github.com/microsoft/WSL.git
synced 2026-05-31 16:13:47 -05:00
20 lines
770 B
CMake
20 lines
770 B
CMake
function(configure_csharp_target TARGET)
|
|
set(TARGET_PLATFORM_MIN_VERSION "10.0.19041.0")
|
|
|
|
target_compile_options(
|
|
${TARGET}
|
|
PRIVATE
|
|
"/langversion:latest"
|
|
"/debug:full")
|
|
|
|
set_target_properties(
|
|
${TARGET} PROPERTIES
|
|
VS_GLOBAL_TargetPlatformVersion "${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}"
|
|
VS_GLOBAL_TargetPlatformMinVersion "${TARGET_PLATFORM_MIN_VERSION}"
|
|
VS_GLOBAL_WindowsSdkPackageVersion "${WINDOWS_SDK_DOTNET_VERSION}"
|
|
VS_GLOBAL_AppendRuntimeIdentifierToOutputPath false
|
|
VS_GLOBAL_TargetLatestRuntimePatch false
|
|
DOTNET_SDK "Microsoft.NET.Sdk"
|
|
DOTNET_TARGET_FRAMEWORK "net8.0-windows${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}"
|
|
)
|
|
endfunction() |