Skip to content

fix release+debug builds on windows

Boman Romain requested to merge boman into master

On windows, the CMAKE_SWIG_OUTDIR was set to "${EXECUTABLE_OUTPUT_PATH}/Release/". In consequence, a release build followed by a debug build generated an error when using the release build afterwards. Indeed, the release modules generated by swig which contain the shadow classes were overwritten by the debug ones (since they are both generated in the Release folder).

The CMAKE_SWIG_OUTDIR is now set to ${EXECUTABLE_OUTPUT_PATH}/$(Configuration)/ as in the other projects.

This new value leads to problems when we want to install the program. The install commands have been adapted so that they work correctly with the new value of the CMAKE_SWIG_OUTDIR variable.

Edited by Boman Romain

Merge request reports