[CMake] Concurrency issues with copy_if_different

2018-07-11 Thread Olivier Croquette
Hello, in one of our projects, we use copy_if_different to copy some DLLs required by the runtime. It's called as post-build action. The problem is that several targets want to copy the same DLLs, and when using parallelized builds, the different "cmake -E copy_if_different" can conflict, lea

Re: [CMake] New CMake book released

2018-07-11 Thread masaru tsuchiyama
Hello Craig Will it be available at https://www.safaribooksonline.com/ ? If you have no plan to support it, could you consider to do? Regards. Masaru. 2018年7月10日(火) 22:11 Craig Scott : > Hi all, please forgive the shameless self-promotion, but I figured this is > the right community of peopl

Re: [CMake] Cannot import a project twice when cross compiling (as host-tool and for the target arch)

2018-07-11 Thread Craig Scott
Not quite sure if it fits your use case, but we use a technique at work basically as described in the following: https://stackoverflow.com/questions/36084785/building-a-tool-immediately-so-it-can-be-used-later-in-same-cmake-run Your case sounds more complicated, but maybe the above technique migh

Re: [CMake] include dirs from EPs not added to project for in-source builds on windows

2018-07-11 Thread Miklos Espak
It was this generator: "Visual Studio 15 2017 Win64" On Wed, 11 Jul 2018 at 17:22, Miklos Espak wrote: > Hi, > > I have a "superbuild" project which builds two external projects (EP) and > then my actual project. It builds fine on linux and mac. On windows, > however, the build fails if the buil

Re: [CMake] include dirs from EPs not added to project for in-source builds on windows

2018-07-11 Thread Miklos Espak
G On Wed, 11 Jul 2018 at 17:22, Miklos Espak wrote: > Hi, > > I have a "superbuild" project which builds two external projects (EP) and > then my actual project. It builds fine on linux and mac. On windows, > however, the build fails if the build directory is *inside* the source > folder. > > Le

[CMake] include dirs from EPs not added to project for in-source builds on windows

2018-07-11 Thread Miklos Espak
Hi, I have a "superbuild" project which builds two external projects (EP) and then my actual project. It builds fine on linux and mac. On windows, however, the build fails if the build directory is *inside* the source folder. Let's say e.g. that the sources are in "c:/src/myproject". If the build

Re: [CMake] .def files since CMake 3.10 in Linux

2018-07-11 Thread Patrick Boettcher
On Mon, 2 Jul 2018 12:08:16 +0200 Patrick Boettcher wrote: > Hi, > > I (and someone else) stumbled upon a problem when using the Azure > IOTHUB SDK for C on a Linux platform using cmake 3.10+: > > https://github.com/Azure/azure-iot-sdk-c/issues/505 > > The problem seems to be triggered by havi

[CMake] Cannot import a project twice when cross compiling (as host-tool and for the target arch)

2018-07-11 Thread Settenvini, Matteo
Dear all, I have the following problem which I don't know how to best solve. Any help is appreciated. == Use Case == Consider the following use case: * We are cross-compiling. * A certain project A depends on project B in two different ways: - it uses an executable tar

Re: [CMake] New CMake book released

2018-07-11 Thread Alfred Sawaya
Hello Craig,Thanks for the book, looking forward to buy it :)Also, there is a typo/mistake on the free sample, p.103, it is written MinRizeRel instead of MinSizeRel.It would be great to have it in e-book format (compatible with the kindle for example).Regards,