summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/VSDotnetTargetFrameworkVersion.cmake
blob: 8e0e0b4c0f4a068370e362535093347d1672107a (plain)
1
2
3
4
5
6
7
8
9
10
enable_language(CSharp)
if(NOT CMAKE_CSharp_COMPILER)
  return()
endif()

set(CMAKE_DOTNET_TARGET_FRAMEWORK_VERSION "v4.6.1")
add_library(foo SHARED foo.cs)

set(CMAKE_DOTNET_TARGET_FRAMEWORK "netcoreapp3.1")
add_library(bar SHARED foo.cs)