[Paraview] ParaView Superbuild - changing default Paraciew cmake option

Ben Boeckel ben.boeckel at kitware.com
Mon Oct 20 11:43:32 EDT 2014


On Mon, Oct 20, 2014 at 15:15:59 +0000, Su, Simon M CTR USARMY ARL (US) wrote:
> I ran cmake with
> 
> -DPV_EXTRA_CMAKE_ARGS:STRING="-DModule_vtkIOXdmf3:BOOL=ON -DBoost_NO_BOOST_CMAKE:BOOL=ON"
> 
> and check it with ccmake. Looks like -DModule_vtkIOXdmf3:BOOL=ON
> -DBoost_NO_BOOST_CMAKE:BOOL=ON made it into the variable
> PV_EXTRA_CMAKE_ARGS
> 
> It appears :STRING does the trick.

Yep. This is a CMake parsing bug; the regular expression for this is too
greedy (it allows '=' in the variable name). Compare:

> -DPV_EXTRA_CMAKE_ARGS=-DModule_vtkIOXdmf3:BOOL=ON -DBoost_NO_BOOST_CMAKE:BOOL=ON
    |-------------------------------------| |--| |-------------------------------|
                variable                    type            value

versus:

> -DPV_EXTRA_CMAKE_ARGS:STRING=-DModule_vtkIOXdmf3:BOOL=ON -DBoost_NO_BOOST_CMAKE:BOOL=ON
    |-----------------| |----| |--------------------------------------------------------|
          variable       type                        value

this works:

> -DSOME_PATH=C:/path/to/file
    |-------| |-------------|
    variable       value

because paths with '=' are very rare:

> -DSOME_PATH=C:/path/to/file/with/=/sign
    |---------| |-----------------| |---|
      variable         type         value

--Ben


More information about the ParaView mailing list