added -c11 flag for pgi compiler for TSL (#4367)

This commit is contained in:
eklee15
2017-05-26 23:07:24 -04:00
committed by Adam J. Stewart
parent a9feeefdb9
commit c0fff6722d

View File

@@ -70,7 +70,9 @@ def install(self, spec, prefix):
'-DGKLIB_PATH:PATH=%s/GKlib' % spec['metis'].prefix.include,
'-DMETIS_PATH:PATH=%s' % spec['metis'].prefix,
'-DCMAKE_C_COMPILER:STRING=%s' % spec['mpi'].mpicc,
'-DCMAKE_CXX_COMPILER:STRING=%s' % spec['mpi'].mpicxx
'-DCMAKE_CXX_COMPILER:STRING=%s' % spec['mpi'].mpicxx,
'-DCMAKE_C_FLAGS:STRING=%s' % (
'-c11' if '%pgi' in spec else ''),
])
if '+shared' in spec: