[petsc-users] petsc cmake config - BUILD_SHARED_LIBS

Jed Brown jed at jedbrown.org
Tue Oct 13 12:05:12 CDT 2015


Satish Balay <balay at mcs.anl.gov> writes:
> If this looks ok - I can push to maint.
> [works for me with cmake 2.8.12 and 3.3.2]

That's fine.  $ only matches at the end of the string unless flags=re.M
is set.

> --------
> diff --git a/config/cmakeboot.py b/config/cmakeboot.py
> index 64accff..5818c14 100755
> --- a/config/cmakeboot.py
> +++ b/config/cmakeboot.py
> @@ -77,7 +77,7 @@ class PETScMaker(script.Script):
>  
>     output,error,retcode = self.executeShellCommand([self.cmake.cmake, '--version'], checkCommand=noCheck, log=log)
>     import re
> -   m = re.match(r'cmake version (.+)$', output)
> +   m = re.match(r'cmake version (.+)', output)
>     if not m:
>         self.logPrint('Could not parse CMake version: %s, disabling cmake build option' % output)
>         return False

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151013/e2033bfe/attachment.pgp>


More information about the petsc-users mailing list