[cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Nicolas Desprès
Hi, I am planning to develop a python generator of CMakeLists.txt file for easier integration in an already existing tool. This approach is different from the others approaches consisting in binding the CMake language in a foreign languages. Lua, Javascript and Python have already been tried

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Eric Noulard
2014-05-15 10:08 GMT+02:00 Nicolas Desprès nicolas.desp...@gmail.com: Hi, I am planning to develop a python generator of CMakeLists.txt file for easier integration in an already existing tool. This approach is different from the others approaches consisting in binding the CMake language in a

[cmake-developers] New property scope for install()ed files?

2014-05-15 Thread Nils Gladitz
In the context of http://www.cmake.org/Bug/view.php?id=14911 I've been thinking it would be nice if there were properties for installed files like there are for source files. For my purposes they would have to be exported for CPack (e.g. in CPackConfig.cmake) similar to how test properties

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Nicolas Desprès
On Thu, May 15, 2014 at 10:15 AM, Eric Noulard eric.noul...@gmail.comwrote: 2014-05-15 10:08 GMT+02:00 Nicolas Desprès nicolas.desp...@gmail.com: Hi, I am planning to develop a python generator of CMakeLists.txt file for easier integration in an already existing tool. This approach is

[cmake-developers] [CMake 0014916]: Info.plist is stored in the wrong directory when creating bundles in subdirectories

2014-05-15 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=14916 == Reported By:Nikolay Zapolnov Assigned To:

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Ben Boeckel
On Thu, May 15, 2014 at 12:45:27 +0200, Nicolas Desprès wrote: Nope. These variables are the cmake equivalent to the __LINE__ and __FILE__ C-pre-processor macro. What I need is the #line directive equivalent which force the value of these variables so that error messages reported by cmake uses

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Brad King
On 05/15/2014 08:36 AM, Ben Boeckel wrote: If you'd like to try a patch, the relevant code is in Source/cmExprParser*. Add a callback for #line nnn and update the CurrentLine variable cmExprParserHelper.cxx. Don't forget tests :) . cmExprParser is just for the math() command. The language

Re: [cmake-developers] New property scope for install()ed files?

2014-05-15 Thread Brad King
On 05/15/2014 04:33 AM, Nils Gladitz wrote: In the context of http://www.cmake.org/Bug/view.php?id=14911 I've been thinking it would be nice if there were properties for installed files like there are for source files. For my purposes they would have to be exported for CPack (e.g. in

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Nicolas Desprès
On Thu, May 15, 2014 at 2:54 PM, Brad King brad.k...@kitware.com wrote: On 05/15/2014 08:36 AM, Ben Boeckel wrote: If you'd like to try a patch, the relevant code is in Source/cmExprParser*. Add a callback for #line nnn and update the CurrentLine variable cmExprParserHelper.cxx. Don't

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Brad King
On 05/15/2014 09:11 AM, Nicolas Desprès wrote: Do you think such a patch would be accepted after version 3 has been released? I have no objection to the proposed feature to support generated files mapping back to other sources. If the patch is sound and has associated documentation (e.g.

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Ben Boeckel
On Thu, May 15, 2014 at 09:22:32 -0400, Brad King wrote: I do not think the policy Ben mentioned will be needed. The syntax #line 1234 /path/to/real/file is fairly obscure and will be treated as a comment by older CMakes. My thought was that such rogue existing comments might give really

Re: [cmake-developers] New property scope for install()ed files?

2014-05-15 Thread Nils Gladitz
On 05/15/2014 03:06 PM, Brad King wrote: Here is a quick brainstorm: Just like CTestTestfile for testing and cmake_install for installation, perhaps we need a per-directory hierarchical cmake_package for CPack. We could re-use source file properties. When the install() command is installing a

Re: [cmake-developers] New property scope for install()ed files?

2014-05-15 Thread Brad King
On 05/15/2014 09:50 AM, Nils Gladitz wrote: I was thinking about using destination paths as the property key in CMakeLists.txt code consistently since this would also work for files created by any type of installation (including CODE/SCRIPT). Yes, that makes sense. The keys could each be

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Brad King
On 05/15/2014 09:39 AM, Ben Boeckel wrote: On Thu, May 15, 2014 at 09:22:32 -0400, Brad King wrote: I do not think the policy Ben mentioned will be needed. The syntax #line 1234 /path/to/real/file is fairly obscure and will be treated as a comment by older CMakes. My thought was that

Re: [cmake-developers] New property scope for install()ed files?

2014-05-15 Thread Nils Gladitz
On 05/15/2014 04:02 PM, Brad King wrote: On 05/15/2014 09:50 AM, Nils Gladitz wrote: Yes, that makes sense. The keys could each be either a relative path (to the install prefix) or an absolute path. We would not need any new commands. The set_property and get_property command could learn a

Re: [cmake-developers] What about #line like feature in cmake language?

2014-05-15 Thread Nicolas Desprès
On Thu, May 15, 2014 at 4:05 PM, Brad King brad.k...@kitware.com wrote: Since the files are generated there is no reason the syntax has to be short. We could use: #cmake-generated-from-line 1234 /path/to/real/file or: #cmake-source-line 1234 /path/to/real/file That's true. I

Re: [cmake-developers] New property scope for install()ed files?

2014-05-15 Thread Brad King
On 05/15/2014 10:14 AM, Nils Gladitz wrote: Assuming there are no use cases which would make these properties useful at install time as well I would suggest CPACK otherwise INSTALL. Let's go with CPACK for now. If we find a use case for INSTALL later we can always teach CPack to understand

Re: [cmake-developers] New property scope for install()ed files?

2014-05-15 Thread Nils Gladitz
On 05/15/2014 04:23 PM, Brad King wrote: On 05/15/2014 10:14 AM, Nils Gladitz wrote: Assuming there are no use cases which would make these properties useful at install time as well I would suggest CPACK otherwise INSTALL. Let's go with CPACK for now. If we find a use case for INSTALL later

[cmake-developers] [CMake 0014917]: CMake does nor create response file for Ninja

2014-05-15 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=14917 == Reported By:Andreas Boerner Assigned To:

[cmake-developers] Any plans to remove the limitation in command line length for the cmake -E remove command?

2014-05-15 Thread Alan W. Irwin
I have recently been reminded that the cmake -E remove command has a limitation due to the length of command line that is acceptable to whatever shell is being used. Is there any willingness to remove that limitation (in which case it would be worthwhile for me to make a formal bug report) or is

[cmake-developers] [CMake 0014918]: x64 build under cygwin fails

2014-05-15 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=14918 == Reported By:Dave Dyer Assigned To:

Re: [cmake-developers] Any plans to remove the limitation in command line length for the cmake -E remove command?

2014-05-15 Thread Ben Boeckel
On Thu, May 15, 2014 at 13:23:10 -0700, Alan W. Irwin wrote: I have recently been reminded that the cmake -E remove command has a limitation due to the length of command line that is acceptable to whatever shell is being used. Is there any willingness to remove that limitation (in which case