[CMake] Function declaration scope

Alexander Neundorf a.neundorf-work at gmx.net
Tue Nov 29 16:18:05 EST 2016


On 2016 M11 29, Tue 14:42:49 CET Robert Bielik wrote:
> Hmm.. using v3.7 the answer is no, i.e. a function declared in a subfolder
> will be available in parent scope. Seems a bit odd, doesn't it ?

this has been discussed here just recently...

Functions and macros are global.
Once they are defined, they are available everywhere, also in parent 
directories etc.

Alex



More information about the CMake mailing list