Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 17:26, Michael Jackson wrote: > > Aren't the Generated VS10 Solutions _still_ dependent on CMake or has that > changed? Not that I can see on CMake 2.8.5, so far I suppressed generating the ZERO_CHECK target which automatically re-runs CMake if it detects relevant changes

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 17:04, John Drescher wrote: > To me this sounds like something that would be perfect to do with > CMake options and some usage of find_libraray, maybe some environment > variables to help out. However I do not mean to tell you how to > configure your software.. I agree. We

Re: [CMake] User generated header file

2011-09-19 Thread Michael Jackson
On Sep 19, 2011, at 11:58 AM, Perry Ismangil wrote: > On Mon, Sep 19, 2011 at 12:47, Eric Noulard wrote: >> >> The fact is it works the way you want, which is good, but beside that >> why would it be better for the user to face a failing build (because >> he forgot to create the file) >> than

Re: [CMake] User generated header file

2011-09-19 Thread John Drescher
> On Mon, Sep 19, 2011 at 14:13, John Drescher wrote: >> My question is can't you have CMake generate the header for the user >> instead of them supplying a file? Is it just defines in this header? >> > > It's basically user/site-specific defines that is based on user > preferences and availabilit

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 14:13, John Drescher wrote: > My question is can't you have CMake generate the header for the user > instead of them supplying a file? Is it just defines in this header? > It's basically user/site-specific defines that is based on user preferences and availability of libra

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 12:47, Eric Noulard wrote: > > The fact is it works the way you want, which is good, but beside that > why would it be better for the user to face a failing build (because > he forgot to create the file) > than > face a failing CMake run (because he forgot to create the fil

Re: [CMake] User generated header file

2011-09-19 Thread John Drescher
>>> Do you want the user to manually add the header, or do you want cmake >>> to create it? >>> >> >> User will manually add it before compile, so Eric mentioned setting >> the GENERATED property to true, it works. > > The fact is it works the way you want, which is good, but beside that > why woul

Re: [CMake] User generated header file

2011-09-19 Thread Eric Noulard
2011/9/19 Perry Ismangil : > On Sun, Sep 18, 2011 at 16:47, C. Meissa wrote: >> >> Do you want the user to manually add the header, or do you want cmake >> to create it? >> > > User will manually add it before compile, so Eric mentioned setting > the GENERATED property to true, it works. The fact

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Sun, Sep 18, 2011 at 16:47, C. Meissa wrote: > > Do you want the user to manually add the header, or do you want cmake > to create it? > User will manually add it before compile, so Eric mentioned setting the GENERATED property to true, it works. Thanks! -- Perry Ismangil __

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Sun, Sep 18, 2011 at 16:43, Eric Noulard wrote: > > You may tell CMake that this file is generated as part of the build: > set_source_files_properties(your_header.h PROPERTIES GENERATED TRUE) > Thanks Eric, this is indeed the property I was looking for to get the right behaviour. -- Perry Is

Re: [CMake] User generated header file

2011-09-18 Thread C. Meissa
On So, 18.09.2011 16:37:31, Perry Ismangil wrote: > On of our project, one of the header file included in the project is > deliberately missing, the user have to manually create it before > building for the first time. Do you want the user to manually add the header, or do you want cmake to create

Re: [CMake] User generated header file

2011-09-18 Thread Eric Noulard
2011/9/18 Perry Ismangil : > I'm converting Visual Studio project files to CMake. > > On of our project, one of the header file included in the project is > deliberately missing, the user have to manually create it before > building for the first time. > > When I tried this with cmake, it complaine

[CMake] User generated header file

2011-09-18 Thread Perry Ismangil
I'm converting Visual Studio project files to CMake. On of our project, one of the header file included in the project is deliberately missing, the user have to manually create it before building for the first time. When I tried this with cmake, it complained that it couldn't find the header file