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

Re: Adding cmake options to dh



On Fri, 16 Aug 2019, 4:31 pm Marc Haber, <mh+debian-mentors@zugschlus.de> wrote:
Hi,

I am compiling a cmake-using project using dh with the following simple
debian/rules:
#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_OPTIONS="nocheck"

%:
        dh $@

override_dh_auto_test:
        echo "skipping test"

To enable a feature I need, upstream suggests
cmake -D METEREXEC_ROOTACCESS=true .

Where would I add this?

override_dh_auto_configure:
    dh_auto_configure -- -DMETEREXEC_ROOTACCESS=true


Do
I need to find out what dh_auto_build does
and add all this manually to my override_dh_auto_build target just to
add the single setting?

The way to go with that would be for you to set DH_VERBOSE, notice *which* tool issue a particular command (in this case it's _confugure, not _build), then know that you can just append options to the command like I did above.

Reply to: