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:

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:10