Hi David,
Why not use OPTION(...) for this, or if you really want to the
equivalent: set(MYVAR ON CACHE BOOL My variable). Don't use FORCE, or
you will overwrite any changes the user made.
Best regards,
Marcel Loose.
On Sun, 2009-11-29 at 10:12 -0500, David Cole wrote:
if(BUILD_PARAVIEW_PLUGIN==ON)
should just be
if(BUILD_PARAVIEW_PLUGIN)
cmake --help-command IF
will explain...
There is no == but there are EQUAL and STREQUAL operators. In the case of
a boolean option variable, the syntax if(variable) if preferred.
HTH,
David
On Sun, Nov 29, 2009 at 9:10