Re: [CMake] checking arguments

2012-02-22 Thread David Cole
On Wed, Feb 22, 2012 at 10:36 AM, Andrea Crotti wrote: > I find not so nice that CMake doesn't complain at all if some variables are > not defined. > Is there a way to make it complain if a variable used is actually blank? > > In the meanwhile I ended up with this: > > set(COMPULSORY_ARGUMENTS PSI

[CMake] checking arguments

2012-02-22 Thread Andrea Crotti
I find not so nice that CMake doesn't complain at all if some variables are not defined. Is there a way to make it complain if a variable used is actually blank? In the meanwhile I ended up with this: set(COMPULSORY_ARGUMENTS PSI) set(OPTIONAL_ARGUMENTS WORKSPACE CONTAINER_PATHS) macro (check_