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

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

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