deps_builder: Fix boost::python linking release python library

By default boost::python in debug configuration links the release
python libraries. Which leads to loading issues with the produced
modules in a debug blender (which does use the debug python libs)

Bjam has an option to switch this to the debug libraries but when
you switch that on it changes the library names for *all* boost
libraries, even ones that don't have anything to do with python
and even the release libraries.

therefore an alternative way has been chosen and we're dealing
with this by adding a define rather than asking bjam to do it.
This commit is contained in:
Ray molenkamp 2020-08-15 11:06:16 -06:00
parent 199e308670
commit 2c61c3d733
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,12 @@ if(WITH_BOOST_PYTHON)
--with-python
--user-config=${JAM_FILE}
)
if(WIN32 AND BUILD_MODE STREQUAL Debug)
set(BOOST_PYTHON_OPTIONS
${BOOST_PYTHON_OPTIONS}
define=BOOST_DEBUG_PYTHON
)
endif()
endif()
set(BOOST_OPTIONS