[Gmsh] python example files?
lukshuntim at gmail.com
lukshuntim at gmail.com
Mon Mar 28 11:22:52 CEST 2011
On 03/28/2011 03:37 PM, David Colignon wrote:
>
>>> Hi Perrin - If you have swig>= 2.0 installed on your system the
>>> wrappers should be automatically built (make _gmshpy). Attached is a
>>> small example.
>>
>> In debian sid, the default swig is 1.3. There's a swig 2.0 but the
>> binary is called swig2.0. Cmake can only find the default version. How
>> can I instruct cmake to find the required version 2.0?
>>
>> Regards,
>> ST
>
>
> Hi,
>
> try with:
>
> cmake -DCMAKE_PREFIX_PATH:string="/path/to/swig2/"
David, thanks very much for your help.
With -DCMAKE_PREFIX_PATH:string="/usr/bin/swig2.0" (with or without the
final slash), cmake still finds the default swig.
Searching a bit more, I found out from
/usr/share/cmake-2.8/Modules/FindSWIG.cmake (that comes with the cmake
package) that a solution is -DSWIG_EXECUTABLE=/usr/bin/swig2.0.
BTW, just for the record which may be useful to people running debian, I
need to set -DCMAKE_INCLUDE_PATH=/usr/include/slepc so that the slepc
headers can be found during make (even though cmake says slepc is found).
Regards,
ST
--