CrayPE fix for axom (#23520)
Pass -ef to the cce fortran compiler, fix the build system to use the correct openmp flag for CCE Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
parent
9d251e51a1
commit
dd350e83d3
@ -371,6 +371,9 @@ def initconfig_package_entries(self):
|
||||
def cmake_args(self):
|
||||
options = []
|
||||
|
||||
if self.spec.satisfies('%cce'):
|
||||
options.append('-DCMAKE_Fortran_FLAGS=-ef')
|
||||
|
||||
if self.run_tests is False:
|
||||
options.append('-DENABLE_TESTS=OFF')
|
||||
else:
|
||||
@ -380,3 +383,9 @@ def cmake_args(self):
|
||||
'BUILD_SHARED_LIBS', 'shared'))
|
||||
|
||||
return options
|
||||
|
||||
def patch(self):
|
||||
if self.spec.satisfies('%cce'):
|
||||
filter_file('PROPERTIES LINKER_LANGUAGE CXX',
|
||||
'PROPERTIES LINKER_LANGUAGE CXX \n LINK_FLAGS "-fopenmp"',
|
||||
'src/axom/quest/examples/CMakeLists.txt')
|
||||
|
Loading…
Reference in New Issue
Block a user