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_PLUG
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:
I am packaging a VTK filter. I am trying to give the user the option
of additionally compiling the Paraview plugin for the filter (in the
.../plugin directory). I wanted to make a BUILD_PARAVIEW_PLUGIN
variable that they could set to "ON" or "OFF". If it is set to "ON",
CMake should proceed with pr