Re: [CMake] include problems

2014-12-03 Thread Petr Kmoch
Hi. The difference is that if there are any variables defined in something, they will be defined in the scope of the function in the second case, making them invisible outside of the function. If that is your problem, you could help this by turning the function into a macro (which has its own set

[CMake] include problems

2014-12-03 Thread Lode Leroy
I have a something.cmake file that works when included directly, but does not work when it is included from inside a function. can someone explain if there is an intentional difference, and what it is, between include(something) and function(use_something)