|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015585||CMake||CMake||public||2015-05-26 10:49||2016-06-10 14:31|
|Assigned To||Kitware Robot|
|Product Version||CMake 3.2.2|
|Target Version||Fixed in Version|
|Summary||0015585: Add support for the if / else construct to generator expressions|
|Description||It's often desirable to provide content for both branches, e.g.:|
Right now code should like this:
Which is beyond being readable.
|Tags||No tags attached.|
Daniel Wolf (reporter)
+1. It is my experience that if the test expression is false, I rarely want the result to be an empty string; usually, I have a second value I want to use in this case.
Before this ticket was pointed out to me, I had already created a question on Stack Overflow: http://stackoverflow.com/q/34393562/52041 [^] . Interestingly, I used almost the identical example there.
Kitware Robot (administrator)
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.
|2015-05-26 10:49||Ilya||New Issue|
|2015-12-21 06:13||Daniel Wolf||Note Added: 0040005|
|2016-06-10 14:29||Kitware Robot||Note Added: 0042782|
|2016-06-10 14:29||Kitware Robot||Status||new => resolved|
|2016-06-10 14:29||Kitware Robot||Resolution||open => moved|
|2016-06-10 14:29||Kitware Robot||Assigned To||=> Kitware Robot|
|2016-06-10 14:31||Kitware Robot||Status||resolved => closed|
|Copyright © 2000 - 2018 MantisBT Team|