[CMake] Enforce variable is defined

Thorsten Wagner wagner.thorsten at gmx.de
Sat Jan 14 14:50:17 EST 2012


On 14.01.2012 20:45, Alexander Neundorf wrote:
> what exactly do you mean ?
> Do you want to force the user to set some variable explicitely ?
>
> if(NOT DEFINED SOME_VARIABLE)
>    message(FATAL_ERROR "...")
> endif()
>
Yes, thanks for the fast solution!

Thorsten


More information about the CMake mailing list