Re: [CMake] Advice on how to remove duplicated code for object and interface library setup

2018-03-21 Thread Stephen McDowell
Hi Deniz, Thanks for the response! I tested it out and it seems to work exactly as you describe :) I don’t want to depend on an un-released version of CMake though. The original desire is because I kept making mistakes / adding definitions for one and not the other (code duplication at its f

Re: [CMake] Advice on how to remove duplicated code for object and interface library setup

2018-03-16 Thread Deniz Bahadir
Am 16.03.2018 um 03:17 schrieb Stephen McDowell: I am trying to obey modern CMake target-based practices, with a twist that everything is available as an OBJECT library if desired.  I have this working and can explain why if desired, but I feel it is extraneous for this question.  What I create

[CMake] Advice on how to remove duplicated code for object and interface library setup

2018-03-15 Thread Stephen McDowell
I am trying to obey modern CMake target-based practices, with a twist that everything is available as an OBJECT library if desired. I have this working and can explain why if desired, but I feel it is extraneous for this question. What I create: - mylib <- the main library - mylib_obj <-