kim-api: support the NVIDIA compiler (#22857)

Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
This commit is contained in:
Scott McMillan 2021-04-08 03:55:32 -05:00 committed by GitHub
parent e38aac8cb6
commit 2a7f588612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,3 +39,9 @@ class KimApi(CMakePackage):
# The Fujitsu compiler requires the '--linkfortran'
# option to combine C++ and Fortran programs.
patch('fujitsu_add_link_flags.patch', when='%fj')
def patch(self):
# Remove flags not recognized by the NVIDIA compiler
if self.spec.satisfies('%nvhpc'):
filter_file('-std=gnu', '',
'examples/simulators/simulator-model-example/CMakeLists.txt')