[cmake-developers] [PATCH] ninja generator: don't initialize language for files marked, as header-only

Tim Blechmann tim at klingt.org
Wed Apr 8 07:54:07 EDT 2015


> not sure if there is a better way to resolve this issue:
> declaring .RC files as header-only break ninja builds on non-windows
> platforms.

note: this is necessary when the the language is set explicitly.

> --->8---
> 
> cmake currently tries to initialize the language rules for all source
> files. when HEADER_FILE_ONLY is used to mark files which should be added
> to the generated project, but should not be compiled, this will
> nevertheless try to initialize the language, which might fail on that
> specific platform. this is a practical issue when declaring .RC files as
> header-only on non-windows platforms.
> 
> 
> 




More information about the cmake-developers mailing list