[CMake] Syntax to document cmake files, functions and macros

2018-12-24 Thread Olivier Croquette
Hello, I have quite a few .cmake files that I want to document. They define functions, macros, and variables, and I was wondering if there is any standard or tooling to help. Is there a complete specification of the syntax used in the CMake distribution itself? E.g.: add_executable(

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

Re: [CMake] CMAKE_*_IMPLICIT_INCLUDE_DIRECTORIES with MinGW

2018-11-07 Thread Olivier Croquette
11-3 21:41, Olivier Croquette wrote: Hi, I got recently build errors when introducing external dependencies in my project, the reason is that those components re-add standard SYSTEM include search paths, which changes the search order and causes #include_next to fail. The typical error message is: |

[CMake] CMAKE_*_IMPLICIT_INCLUDE_DIRECTORIES with MinGW

2018-11-03 Thread Olivier Croquette
Hi, I got recently build errors when introducing external dependencies in my project, the reason is that those components re-add standard SYSTEM include search paths, which changes the search order and causes #include_next to fail. The typical error message is:

[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,

[CMake] Lib prefix: Windows vs. Unix/MinGW convention

2018-07-10 Thread Olivier Croquette
Hello, some projects I am working on are built using CMake and MinGW on Windows. It works fine, unfortunately there are come inconsistencies regarding the names of the generated libraries. Some are prefixed with "lib" like on Unix systems, some are not, like usual on Windows. It seems that