Closed MarkCallow closed 2 years ago
What is the "" ON
in each of these the for? And note there is no first ON
in the GL_UPLOAD item.
Shouldn't they be
set( VARIABLE ON CACHE BOOL "doc string" )
?
I tried this and it is working. All are now appearing in the CMake GUI so I can't seen any difference between this and option()
. Is there some difference I am missing or should I just use option()
?
You're right, the code I suggested is wrong (probably copy paste or editing errors).
I presumed cached variables wouldn't show up in UI, but apparently I was wrong.
Sure, you can use option
. It's a bit easier to read, but I don't see a difference otherwise.
First reported by @jansol as part of #504. Transferring here because the issues and fixes are completely unrelated. @jansol subscribe to this issue for updates.
See #504 for discussion and solutions proposed by @atteneder.
We will use his recommendation
Perhaps we can use
cmake_dependent_option
, if there are dependencies between these features. That will have to wait until we have time to explore the combinations.