Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Sun, Sep 18, 2011 at 16:43, Eric Noulard eric.noul...@gmail.com 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

Re: [CMake] User generated header file

2011-09-19 Thread Eric Noulard
2011/9/19 Perry Ismangil pe...@pjsip.org: On Sun, Sep 18, 2011 at 16:47, C. Meissa carsten.mei...@gmx.de 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

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 would it be better

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 12:47, Eric Noulard eric.noul...@gmail.com 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

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 14:13, John Drescher dresche...@gmail.com 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

Re: [CMake] User generated header file

2011-09-19 Thread John Drescher
On Mon, Sep 19, 2011 at 14:13, John Drescher dresche...@gmail.com 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

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 eric.noul...@gmail.com 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

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 17:04, John Drescher dresche...@gmail.com 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

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 17:26, Michael Jackson mike.jack...@bluequartz.net 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

[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

Re: [CMake] User generated header file

2011-09-18 Thread Eric Noulard
2011/9/18 Perry Ismangil pe...@pjsip.org: 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

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