Re: [cmake-developers] [Discussion] Add python support for CMakeLists

2017-01-16 Thread Florent Castelli
> > It's up to users to use generator expressions instead of if(WIN32) or > whatever: > > add_library(foo > foo.cpp > $<$:foo_win.cpp> > ) > > This has been possible for years and was designed with IDEs in mind: Sure, it’s possible, but it’s not very user friendly or declarative (you

Re: [cmake-developers] [Discussion] Add python support for CMakeLists

2017-01-16 Thread Stephen Kelly
Florent Castelli wrote: > Well, CMake scripts can be written in a somewhat declarative form now. > What prevents this now is that a lot of people use indirections > everywhere. For example: add_library(foo STATIC ${SRCS}) If it was a plain > list, any decent IDE would be able to parse this and

Re: [cmake-developers] [Discussion] Add python support for CMakeLists

2017-01-16 Thread Brad King
On 01/16/2017 03:40 PM, Florent Castelli wrote: > Well, CMake scripts can be written in a somewhat declarative form now. [snip] > I made some functions with parameters similar to the example above and > everything became a (custom) declarative format. Yes, many projects have macros/functions to

[cmake-developers] Question / Feature request: LLVM bitcode target

2017-01-16 Thread Stanislav Pankevich
Hello, This goes somewhere between a question and a feature request. We are working on mull, https://github.com/mull-project/mull mutation testing system based on top of LLVM. Currently the development is mostly focused around testing of C++ projects and we use LLVM and its libraries as a

Re: [cmake-developers] [Discussion] Add python support for CMakeLists

2017-01-16 Thread Florent Castelli
Well, CMake scripts can be written in a somewhat declarative form now. What prevents this now is that a lot of people use indirections everywhere. For example: add_library(foo STATIC ${SRCS}) If it was a plain list, any decent IDE would be able to parse this and add another file to the list

Re: [cmake-developers] [Discussion] Add python support for CMakeLists

2017-01-16 Thread Shmuel H,
> My point is that an IDE should be able to edit the declarative spec > without having run a configuration or even create a build tree. The > spec should be the preferred form for making changes and stored in > version control. Any intermediate spec generated by a procedural > Language script

Re: [cmake-developers] [Discussion] Add python support for CMakeLists

2017-01-16 Thread Brad King
On 01/14/2017 03:27 AM, Shmuel H, wrote: > 1. Script stage: Look for and run build script, that will generate a > [JSON] configuration file. My point is that an IDE should be able to edit the declarative spec without having run a configuration or even create a build tree. The spec should be

Re: [cmake-developers] [Discussion] Add python support forCMakeLists

2017-01-16 Thread Mate Nagy-Egri via cmake-developers
This all rhymes fairly well with an earlier suggestion of mine, CMake IR, a stateless intermediate representation. Though I originally suggested this feature to facilitate the authoring of generators, it could’ve also act as an alternative front-end, other than the CMake script language (which