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

David Cole david.cole at kitware.com
Mon Jul 2 13:38:50 EDT 2012


On Mon, Jul 2, 2012 at 11:58 AM, Eric Noulard <eric.noulard at gmail.com> wrote:
> 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


Probably because of this:

  LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
    /sw        # Fink
    /opt/local # MacPorts
    )

from Darwin.cmake...



More information about the cmake-developers mailing list