Re: [CMake] Generator expressions: Identifying when they're used in a custom command?

2018-02-18 Thread Sam Edwards
fake_target and not depending_target. Could you take a look and clarify what I'm not doing quite right? Best, Sam On Sun, Feb 18, 2018 at 3:09 PM, Alan W. Irwin <ir...@beluga.phys.uvic.ca> wrote: > On 2018-02-18 03:49-0700 Sam Edwards wrote: > > However, when it came time

[CMake] Generator expressions: Identifying when they're used in a custom command?

2018-02-18 Thread Sam Edwards
Hi list! I'm working on a CMake buildsystem for the Panda3D project. The project is essentially a C++ 3D engine with its own custom Python binding generator known as Interrogate. The basic idea is that after a library's C++ code is compiled in the usual way, the C++ source files and headers are

Re: [CMake] Generator expressions: Identifying when they're used in a custom command?

2018-02-19 Thread Sam Edwards
Alan, I'm kicking myself for leaving off the DEPENDS in add_custom_target as that is the most essential part of what you suggested. Bah! I tried copying in your changes verbatim and I'm still left with an output that produces IS_INTERROGATE=0. This is on both 3.9.6 (my development machine) and

[CMake] Best practice for configuration-dependent defaults?

2018-08-17 Thread Sam Edwards
Hi all! I have a project with some options that have different defaults depending on the configuration used to build the project. For example, support for a certain (easy to support, but relatively uncommon) file format should be on by default, except when building in the MinSizeRel

[CMake] Generator expression for "is in list"?

2018-04-07 Thread Sam Edwards
Hello list! I'm trying to write a generator expression that only evaluates if my target is directly (not transitively) linked into the consuming target. I figured the easiest way to do that would be to test if the target's name appears in $, however I'm not seeing a generator expression for