Re: [cmake-developers] Compile flags depending on source file property

2018-08-06 Thread Brad King
On 08/03/2018 07:12 PM, Simon Richter wrote: > string(APPEND CMAKE_CXX_FLAGS > "$,${WARN_SHADOW_OFF},${WARN_SHADOW_ON}> ") The generators put the project-/target-wide flags in a place that does not depend on the source being compiled so there would be no way to evaluate that. On some generato

[cmake-developers] Compile flags depending on source file property

2018-08-03 Thread Simon Richter
Hi, I'd like to compile different source files with slightly different flags, calculating the flags dependent on source file properties. The easiest example would be different warning flags for all generated sources, as I have little influence over this code. The only way I can think of doing th