Re: [CMake] Conditional subdirectory build

2009-11-30 Thread Marcel Loose
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

Re: [CMake] Conditional subdirectory build

2009-11-29 Thread David Cole
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:

[CMake] Conditional subdirectory build

2009-11-29 Thread David Doria
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