[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NDEBUG and CMake



Dear Gert,

On 26/04/18 09:47, Gert Wollny wrote:

Am Mittwoch, den 25.04.2018, 12:32 +0200 schrieb Sébastien Jodogne:

cmake -DCMAKE_C_FLAGS=-DNDEBUG -DCMAKE_CXX_FLAGS=-DNDEBUG [...]

Please someone could validate this approach? TIA!

Add this at the top of d/rules:

export DEB_CFLAGS_MAINT_APPEND=-DNDEBUG
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG

Great! This is exactly what I was looking for.

I've just issued a new version of the package with the following changeset:
https://salsa.debian.org/med-team/orthanc/commit/00c5667406469adf499d66d93c2a0011dac4b778

Many thanks,
Sébastien-


Reply to: