[Paraview] ParaView Superbuild - changing default Paraciew cmake option

Su, Simon M CTR USARMY ARL (US) simon.m.su.ctr at mail.mil
Mon Oct 20 11:57:26 EDT 2014


Ben,

Unfortunately, when I checked the CMakeCache.txt in the directory paraview/src/paraview-build after the cmake ran, I am still finding

//Request building vtkIOXdmf3
Module_vtkIOXdmf3:BOOL=OFF

and Boost_NO_BOOST_CMAKE is none existence in the  CMakeCache.txt

I even tried both 
-DPV_EXTRA_CMAKE_ARGS:STRING="-DModule_vtkIOXdmf3:BOOL=ON -DBoost_NO_BOOST_CMAKE:BOOL=ON"
and 
-DPV_EXTRA_CMAKE_ARGS:STRING="Module_vtkIOXdmf3:BOOL=ON Boost_NO_BOOST_CMAKE:BOOL=ON"

thoughts?

thanks
-simon

________________________________________
From: Ben Boeckel [ben.boeckel at kitware.com]
Sent: Monday, October 20, 2014 11:43 AM
To: Su, Simon M CTR USARMY ARL (US)
Cc: paraview at paraview.org
Subject: Re: [Paraview] ParaView Superbuild - changing default Paraciew cmake option

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