[cmake-developers] [CMake 0011944]: CPackDeb: Support dependencies between components/Debian packages

Domen Vrankar domen.vrankar at gmail.com
Tue Apr 28 06:31:11 EDT 2015


> I am having a look now at the changes you made on the first patch (say
> 75b0e1679c39ca824a4c49d9e1a2ae2b5f04ae06), file
> RunCPackComponentsDEB/RunCPackVerifyResult-components-lintian-dpkgdeb-checks.cmake
>
> Instead of finding lintian and dpkg-deb in the check file
> find_program(LINTIAN_EXECUTABLE lintian)
> find_program(DPKGDEB_EXECUTABLE dpkg-deb)
>
> why not returning the string "NOTFOUND" in eg. the functions run_lintian
> lintian_output, like this:
>
> set(${lintian_output} "NOTFOUND" PARENT_SCOPE)
>

One reason is that tests that don't have prerequisites met should not
even be executed in the first place.
The other reason is that if I had time I would rewrite and generalize
all CPack tests to meet those expectations.

Regards,
Domen


More information about the cmake-developers mailing list