TARGET_LINK_LIBRARIES(py2cpp ${_link_LIBRARIES})
TARGET_INCLUDE_DIRECTORIES(py2cpp PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
- $<INSTALL_INTERFACE:${INSTALL_CMAKE_DIR}/include>)
+ $<INSTALL_INTERFACE:include>)
INSTALL(TARGETS py2cpp EXPORT FindPy2cpp LIBRARY DESTINATION lib)
INSTALL(FILES ${_py2cpp_headers} DESTINATION include/py2cpp)
pyRepr = PyUnicode_AsUTF8(pyResult);
else
pyRepr = "unknown representation";
+ Py_XDECREF(pyResult);
if(pyRepr.size() > 80)
{
pyRepr = pyRepr.substr(0, 76);