summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/VsCSharpCompilerOpts.cmake
blob: 85af38be924a9839fb898f858066acb9207df18c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
enable_language(CSharp)

add_library(foo SHARED
  foo.cs)

set_target_properties(foo PROPERTIES
  LINKER_LANGUAGE CSharp)


# Issue 18878
target_compile_options(foo PRIVATE	"/platform:anycpu" "/nowarn:707,808" "/nowarn:909" )

# Debug only warning disable
set(CMAKE_CSharp_FLAGS_DEBUG "${CMAKE_CSharp_FLAGS_DEBUG} /nowarn:505")