IMPORTED_LOCATION target property support generator expressions?
I tried this with and it appears to work on Windows but not on Linux. I don’t see an explicit “this supports generator expressions” notice, but I was thinking since it works with Windows it would work with Linux too.
When you say “Windows” do you mean the Visual Studio generator? If so, does it work with the Ninja generator on Windows? I ask because I suspect this is actually generator-divergent behavior rather than platform-based. Please file an issue with your findings since something needs changed anyways to make it consistent however it shakes out (with test cases of course).
Oh! Thanks @ben.boeckel ! I forget that Windows != Visual Studio.
Yes, this was found in Visual Studio.
I was so excited, I thought I had a working solution using the generator expression for
IMPORTED_LOCATION based on my Windows Visual Studio test, but then it failed on my Linux tests.
I will see about creating a simple example to prove and file an issue as suggested.
I learned that it’s not a problem. I was using the contents of IMPORTED_LOCATION to be passed to another option that accepted Generator expressions.
This worked for one case in VS but not for it’s true purpose. In short… this is an operator error.