OpenSubdiv
OpenSubdiv copied to clipboard
Cmake - Need to add Ptex debug Library Option for Visual Studio
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.
Filed as internal issue #OSD-252.