Re: [CMake] Check if a command exists?

2012-09-04 Thread Mathias Gaunard
On 03/09/2012 21:59, Rui Maciel wrote: I have a small project which includes a couple of parsers whose lexers are generated by re2c. I intended to set cmake so that it could check if re2c is present in the system, but after browsing through the docs I've ended up empty-handed. So, is there a

Re: [CMake] Check if a command exists?

2012-09-03 Thread Andreas Naumann
I don't know if it's the right way, but I am looking for the executable/script with find_file and set up a custom command for it. Regards, Andreas Naumann Am 03.09.2012 21:59, schrieb Rui Maciel: I have a small project which includes a couple of parsers whose lexers are generated by re2c. I

Re: [CMake] Check if a command exists?

2012-09-03 Thread Alexander Neundorf
On Monday 03 September 2012, Rui Maciel wrote: I have a small project which includes a couple of parsers whose lexers are generated by re2c. I intended to set cmake so that it could check if re2c is present in the system, but after browsing through the docs I've ended up empty-handed. Use

Re: [CMake] Check if a command exists?

2012-09-03 Thread Clifford Yapp
On Mon, Sep 3, 2012 at 3:59 PM, Rui Maciel rui.mac...@gmail.com wrote: I have a small project which includes a couple of parsers whose lexers are generated by re2c. I intended to set cmake so that it could check if re2c is present in the system, but after browsing through the docs I've ended