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

[CMake] CMAke install files using cmake-generator-expression

2018-01-15 Thread Lars
Hello, Using CMake 3.8.1 on Windows 7 SP1. The following cmake expression will produce an error. INSTALL( FILES $<$${COMP_PATH}/win32/bin/comp.dll> DESTINATION "${install_dir}") "CMake error: Error evaluating generator expression: $. $ may only be used with binary targets. It may