OpenSubdiv icon indicating copy to clipboard operation
OpenSubdiv copied to clipboard

Cmake - Need to add Ptex debug Library Option for Visual Studio

Open adam-hartshorne opened this issue 6 years ago • 1 comments

When using Cmake on Windows to build a Visual studio solution, there is only the option to add PTEX_LIBRARY. In order for the resultant solution to build correctly, one needs the separate debug and release libraries to be able to be selected, otherwise the compiler complains about

error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in

when building with the debug build.

Obviously it is easy enough to rectify within Visual Studio, but it is rather annoying to have to go through all the examples and change it any time I update the OpenSubDiv library source and want to rebuild.

adam-hartshorne avatar Jan 09 '19 11:01 adam-hartshorne

Filed as internal issue #OSD-252.

jtran56 avatar Jan 16 '19 20:01 jtran56