Feature request: Allow setting directory level variables from within a nested function
Currently it's not possible to set a directory-scoped variable within a nested function call stack, without each function manually passing the value upwards using chained set(foo bar PARENT_SCOPE)
.
It would be nice if we had a set(foo "bar" DIRECTORY_SCOPE)
.
One case where this is useful is setting directory-scoped variables within a function, which will then be consumed by the implicit configure_file(Info.plist)
for MACOSX_BUNDLE_INFO_PLIST
.
.
.
Possible other 1st of April signatures.
set(foo "bar" PARENT_PARENT_PARENT_SCOPE)
set(foo "bar" PAAAAAAARENT_SCOPE)
/endjoke>
Edited by alcroito