Re: [CMake] Dual use for single source file

2018-01-16 Thread christoph@ruediger.engineering
201 458 478 58 Von: Hendrik Sattler Datum: Montag, 15. Januar 2018 um 14:47 An: "cmake@cmake.org" , "christoph@ruediger.engineering" , "cmake@cmake.org" Betreff: Re: [CMake] Dual use for single source file Hi, I also fell into this trap before: Don't use MAIN_

Re: [CMake] Dual use for single source file

2018-01-15 Thread Hendrik Sattler
Hi, I also fell into this trap before: Don't use MAIN_DEPENDENCY but DEPENDS. HS Am 15. Januar 2018 12:19:37 MEZ schrieb "christoph@ruediger.engineering" : >Hi folks, > >we’re using a clang-based tool for co-processing a bunch of our source >files. The benefit is, that it understands the compi

[CMake] Dual use for single source file

2018-01-15 Thread christoph@ruediger.engineering
Hi folks, we’re using a clang-based tool for co-processing a bunch of our source files. The benefit is, that it understands the compile_commands.json database and hence we do not need to pull out the include paths and the compile definitions by hand. However, CMake does not compile the source f