Re: [CMake] Use interface libraries for providing compile options and definitions

2019-10-04 Thread Dustyn Blasig
Thanks for the input. I will try to upload an example soon and upload an issue. In the meantime, I think I'll go the route of providing a library of helper functions like `add_my_flag_target_definitions(other_library PRIVATE)` that any targets can call. It ends up being about the same amount of CM

Re: [CMake] Use interface libraries for providing compile options and definitions

2019-10-03 Thread Craig Scott
On Fri, Oct 4, 2019 at 2:27 AM Dustyn Blasig wrote: > Hi All, > > I have been cleaning up our legacy CMake to use newer features (available > in 3.12+) including trying to use target_...() functions nearly > exclusively. As part of this, I was toying with cleaning up our use cases > for adding co

[CMake] Use interface libraries for providing compile options and definitions

2019-10-03 Thread Dustyn Blasig
Hi All, I have been cleaning up our legacy CMake to use newer features (available in 3.12+) including trying to use target_...() functions nearly exclusively. As part of this, I was toying with cleaning up our use cases for adding compiler flags and similar definitions using real targets and targe