2

I wish to set a cmake variable to a certain value for debug configuration, and to another value for release. This works well with CMAKE_BUILD_TYPE conditional and single configuration projects, but I don't know how to do it in a multi configuration one, e.g. Visual Studio. Any ideas?

krojew
  • 1,297
  • 15
  • 38

1 Answers1

0

I found you can get away with using both debug and release versions in a single variable:

set(VARIABLE debug debug.lib optimized release.lib)
krojew
  • 1,297
  • 15
  • 38