diff --git a/cMake/FreeCAD_Helpers/SetupShibokenAndPyside.cmake b/cMake/FreeCAD_Helpers/SetupShibokenAndPyside.cmake index d6078c07c4..f9cf6f930f 100644 --- a/cMake/FreeCAD_Helpers/SetupShibokenAndPyside.cmake +++ b/cMake/FreeCAD_Helpers/SetupShibokenAndPyside.cmake @@ -37,6 +37,10 @@ macro(SetupShibokenAndPyside) message(STATUS "PYTHON_CONFIG_SUFFIX: ${PYTHON_CONFIG_SUFFIX}") find_package(Shiboken${SHIBOKEN_MAJOR_VERSION} QUIET) endif() + + if(SHIBOKEN_MAJOR_VERSION EQUAL 6) + set_target_properties(Shiboken6::libshiboken PROPERTIES INTERFACE_COMPILE_DEFINITIONS "NDEBUG") + endif() endif() # pyside2 changed its cmake files, this is the dance we have