[cmake-developers] trouble with running cpack --help during cmake step

Eric Noulard eric.noulard at gmail.com
Mon Jul 2 11:58:02 EDT 2012


2012/7/2 David Cole <david.cole at kitware.com>:
>
> On our dashmacmini3 dashboards, we're getting:
>
>   DPKG_EXECUTABLE='/sw/bin/dpkg'
>
> It's found by find_program at CMake configure time, but cpack does not
> find this program (it's not in the PATH) at testing time.
>
> What should we do about this?
>
> I could just set DPKG_EXECUTABLE=OFF to circumvent the test on these 3
> dashboards for now... But I'd like a real fix for it. Seems like cpack
> should find it if CMake's find_program can find it.

Yes I [apparently wrongly] supposed

that
cmSystemTools::FindProgram("dpkg")

would find 'dpkg' iff:
find_program(DPKG_EXECUTABLE NAMES dpkg)
did find it...

Why is the result of this two commands differents?
Are there some env var that makes the behavior different?
Or may be the configure environement is different from
the test environment...


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org



More information about the cmake-developers mailing list