summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/VsCSharpDefines.cmake
blob: 62c19c521c6314004539d5da86fc87008cdb6f0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
enable_language(CSharp)

add_library(foo SHARED
  foo.cs)

set_target_properties(foo PROPERTIES
  LINKER_LANGUAGE CSharp)


# Issue 18698
target_compile_definitions(
  foo
    PUBLIC
      MY_FOO_DEFINE
      "MY_BAR_ASSIGNMENT=bar"
      $<$<CONFIG:Debug>:DEFINE_ONLY_FOR_DEBUG>
      $<$<CONFIG:Release>:DEFINE_ONLY_FOR_RELEASE>
)