Re: [CMake] Concurrency issues with copy_if_different

2018-12-08 Thread J. Caleb Wherry
Our case is pretty simplified in that almost every executable uses the dependent DLLs/SOs I need copied. For C# apps it is log4net, NDesk.Options, etc. For native apps it’s fmpeg shared libraries. So when I create the list at configure time, I immediately just use CMake to copy the files the where

[CMake] Can CXX_CLANG_TIDY use .clang-tidy file?

2018-12-08 Thread Mateusz Loskot
Hi, Am I correct clang-tidy run via CXX_CLANG_TIDY ignores .clang-tidy configuration file? I've tried number of ways to help it find the file, i.e. copied the file to binary directories from where it seems run via usr/local/bin/cmake -E __run_co_compile --tidy=/usr/bin/clang-tidy-7 Best regards,

[CMake] [MSVC] Setting warning level on target feels like long-time bug

2018-12-08 Thread Mateusz Loskot
Hi, I define a target for a library, and set warning level for MSVC compiler: target_compile_options(mylib PRIVATE $<$:-W4>) Although this works well, the compiler throws this warning: cl : Command line warning D9025: overriding '/W3' with '/W4' I want to get rid of this warning, so I fix it t

Re: [CMake] Concurrency issues with copy_if_different

2018-12-08 Thread Olivier Croquette
On 2018-7-12 15:16, J. Caleb Wherry wrote: 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