| I made one more modification to drop the use of find_program and
instead use the FindGit.cmake module that comes with CMake. It should
hopefully be more robust. No idea why Cmake thought that empty git
file satisfied as a program.
On Sat, Oct 22, 2016 at 12:43 PM, jpff wrote:
> I tink it is cmake as the ie now reads
>
> # get the git hash and pass it to csound
> find_program(GIT_EXE git PATHS /usr/bin /usr/local/bin NO_DEFAULT_PATH)
> find_program(GIT_EXE git /usr/bin)
>
> but it finds what is not a progam; so eiter the function is badly named or
> it is wrong. /in the first case tee ougt to be a finf_progra/-executable
>
>
>
> On Sat, 22 Oct 2016, Victor Lazzarini wrote:
>
>> What is wrong, the script or cmake? The first one we can change.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 22 Oct 2016, at 16:55, jpff wrote:
>>>
>>> Works if I delete/rename that text file so I can live wit it, but it is
>>> wrong
>>>
>>>> On Sat, 22 Oct 2016, Victor Lazzarini wrote:
>>>>
>>>> Is it working now?
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 22 Oct 2016, at 15:03, jpff wrote:
>>>>>
>>>>> A few remarks.
>>>>>
>>>>> 1: Yes . is in my search path; been that way for 30 years
>>>>>
>>>>> 2: I have a file ~/csound6/git which has been present since 2015
>>>>>
>>>>> 3: The file is not executable and is actually empty
>>>>>
>>>>> 4: On the desk machine it was the same, but deleting this file made it
>>>>> work
>>>>>
>>>>> 5: So I ask why it detected this file as a program, given it is not
>>>>> executable and . is at the end of the search path
>>>>>
>>>>> ==John ffitch
>>>>
>>>>
>> |