You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/VS10Project/VsDotnetTargetFramework.cmake

12 lines
300 B

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)