[petsc-dev] [PATCH 3 of 3] cmake: replace invalid characters with underscores
Jed Brown
jedbrown at mcs.anl.gov
Mon Aug 27 10:51:02 CDT 2012
Does this really work? Barry's problem-configure from a while back left
stuff like this
PETSC_-FRAMEWORK_LIB:FILEPATH=PETSC_-FRAMEWORK_LIB-NOTFOUND
This came from passing --with-opengl-lib="-framework glut -framework
opengl" to configure. I don't see the logic above that is going to produce
PETSC_GLUT_LIB and PETSC_OPENGL_LIB.
On Sun, Aug 26, 2012 at 6:14 PM, Sean Farley <sean at mcs.anl.gov> wrote:
> # HG changeset patch
> # User Sean Farley <sean at mcs.anl.gov>
> # Date 1345951634 18000
> # Node ID 577257bfa0b5538f55d5f81b38628cb3dec0d627
> # Parent 63d07634522344a4f6078db68a6e31e1ea6d5d59
> cmake: replace invalid characters with underscores
>
> This seemingly fixes -framework being passed to cmake
>
> diff --git a/config/PETSc/Configure.py b/config/PETSc/Configure.py
> --- a/config/PETSc/Configure.py
> +++ b/config/PETSc/Configure.py
> @@ -436,11 +436,11 @@
> extendby(self.libraries.rt)
> extendby(self.compilers.flibs)
> extendby(self.compilers.cxxlibs)
> extendby(self.compilers.LIBS.split())
> for libname in nublast(lib_libs):
> - libvar = 'PETSC_' + libname.upper() + '_LIB'
> + libvar = 'PETSC_' + libname.upper().replace('-','').replace('
> ','_') + '_LIB'
> addpath = ''
> for lpath in nublast(lib_paths):
> addpath += '"' + str(lpath) + '" '
> fd.write('find_library (' + libvar + ' ' + libname + ' HINTS ' +
> addpath + ')\n')
> libvars.append(libvar)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120827/0eae5506/attachment.html>
More information about the petsc-dev
mailing list