[CMake] [proposal] Support for modern CMake

Mateusz Loskot mateusz at loskot.net
Thu Mar 22 10:17:15 EDT 2018


On 20 March 2018 at 21:52, Alexander Neundorf <neundorf at kde.org> wrote:
> On 2018 M03 20, Tue 21:14:30 CET Mateusz Loskot wrote:
> ...
>> Why I can not write:
>>
>> target_use(app Boost::system Boost::filesystem)
>>
>> or
>>
>> target_use_targets(app Boost::system Boost::filesystem)
>>
>> and, actually read and understand what I'm doing?
>>
>> (If you're now typing "why don't you create a custom macro wrapper"
>> response, please don't!)
>>
>> How nicely it would fit into the concept of CMake member functions
>> presented by Daniel [1] (@17:25 min), wouldn't it?
>>
>>
>> Disclaimer: Originally, the idea came from Colby Pike [2] who suggested [3]
>> use_targets(app Boost::system)
>
> Not sure, I guess I was earlier ;-)
> You may want to have a look at
> https://cmake.org/pipermail/cmake-developers/2012-December/017561.html
> and the following discussion.

It seems folks generally agree there is need for porcelain API.
It's a pity it's been 5+ years and it is still waiting for implementation.


Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list