On 2018-04-25 11:32, Sébastien Jodogne wrote:
Dear all,
The Debian packages for Orthanc and its associated plugins pay
attention to the fact of *not* setting "-DCMAKE_BUILD_TYPE=Release",
as requested by the Debian policy [1].
However, the source code of the upstream Orthanc project makes many
calls to the "assert()" function of the standard library [2], in order
to help with the early tracking of bugs. All those assertions are
extremely time-consuming, and should only be enabled in debug builds.
Have you tried RelWithDebInfo as the build type?
(https://cmake.org/Wiki/CMake_Useful_Variables)
This should set NDEBUG but still use -g to get debug symbols.
Regards,
Roger