Open
Description
For linking OpenSim via CMake, I currently use:
target_link_libraries( sconeopensim4 osimTools )
This automatically sets all dependencies for all OpenSim libraries, as well as the include paths, which is great! However, for DEBUG builds, it links the release builds of the library instead of the _d
debug versions. This causes any code to crash, because debug builds are incompatible with release builds. I tried changing it to:
target_link_libraries( sconeopensim4 osimTools_d )
but this won't add the other libraries or set any of the include paths. The only workaround is to manually change the library names inside Visual Studio, but these changes get overwritten every time CMake is run.
Any help on how to improve this is greatly appreciated!