Sure but how would CMake solve it? 

It would have to keep a backtrace of all properties when a target is created. 
Or at least all properties involved in the list of sources. You need a 
backtrace (or some other way to store a source location) in order to find a 
source location. That seems kinda obvious. Okay maybe not a backtrace then, but 
just the top of the trace. 

-----Original Message-----
From: cmake-developers <cmake-developers-boun...@cmake.org> On Behalf Of Tobias 
Hunger
Sent: Thursday, February 15, 2018 7:38 AM
To: Ben Boeckel <ben.boec...@kitware.com>
Cc: CMake Developers <cmake-developers@cmake.org>
Subject: Re: [cmake-developers] Cmake-server question

On Thu, Feb 15, 2018 at 3:18 PM, Ben Boeckel <ben.boec...@kitware.com> wrote:
> On Wed, Feb 14, 2018 at 19:19:39 +0100, Paweł Rutka wrote:
>> I would like to ask about some important feature:
>> Is there any possibility to provide form Cmake Server side location 
>> of command that generate the target? The Use Case is as follow:
>> In IDE you want  to, after Class creation, automatically add CPP file 
>> into proper add_executable or extend some variable passed to  
>> add_executable or any other case that lead to target creation.
>
> Note that this is a very hard problem. Take the following examples:

I am very aware that adding files to cmake targets is a hard problem:-/ That's 
why Creator does not even try to do it. It is bound to do it wrong and thus 
users can not trust the functionality.

If there is any chance to solve this problem, then inside cmake. At least you 
and your code do fully understand the cmake language.

Best Regards,
Tobias
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake-developers

Reply via email to