Re: [CMake] Transitive include and link libraries on imported targets ?

2017-04-05 Thread Dvir Yitzchaki
target_link_libraries(B INTERFACE A) Regards, Dvir From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of David Jobet Sent: Wednesday, April 5, 2017 18:34 To: cmake@cmake.org Subject: [CMake] Transitive include and link libraries on imported targets ? Hello, Let's say I build some external l

Re: [CMake] cmake -E remove -f

2017-04-05 Thread Craig Scott
Yes, but in both cases the directory foo is still not deleted! At least on OSX any way. On Thu, Apr 6, 2017 at 9:22 AM, Mark Ferry wrote: > Hi Craig > > On Thu, 06 Apr 2017 08:55:58 +1000, Craig Scott wrote: > > Can anyone identify a scenario where the -f option to the CMake command > > mode's "

Re: [CMake] cmake -E remove -f

2017-04-05 Thread Mark Ferry
Hi Craig On Thu, 06 Apr 2017 08:55:58 +1000, Craig Scott wrote: > Can anyone identify a scenario where the -f option to the CMake command > mode's "remove" command makes any difference? > How about removing directories: ~/src/cmake-test$ cmake --version cmake version 3.0.2 CMake suite maintain

[CMake] cmake -E remove -f

2017-04-05 Thread Craig Scott
Can anyone identify a scenario where the -f option to the CMake command mode's "remove" command makes any difference? Testing a range of possibilities has so far yielded no difference for the cases I can think of. The documentation simply says "use -f to force it", which doesn't explain when such f

[CMake] Is it possible to detecting if -C was used, and if so which file was passed?

2017-04-05 Thread Harrison, Cyrus D.
Hi Everyone, I have a simple quandary — I was wondering if -C was used when cmake is run — is it possible to find the name of this file via any cmake state? Thanks! -Cyrus -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMak

Re: [CMake] get complete list of compile definitions

2017-04-05 Thread Volker Enderlein
Am 04/04/2017 um 11:17 schrieb Magnus Therning: Robert Schwarzelt writes: Hi all, I need to implement a code export function, that will only export code used in a specific project configuration. For this purpose I want to use unifdef (http://dotat.at/prog/unifdef/), which is capable of removin

[CMake] Transitive include and link libraries on imported targets ?

2017-04-05 Thread David Jobet
Hello, Let's say I build some external libs A and B with B depending on A. B and A do not use cmake, so I build them and install them in a 3rdparty directory. I now have access to includes and libs. I then create some cmake file to describe those libs so I can use them in my project : Add_librar