nanoflann: Don't add -mtune=native on ARM and gcc 5.x (#12093)
This commit is contained in:
parent
2b35ad7b22
commit
39139b9db8
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ class Nanoflann(CMakePackage):
|
|||
|
||||
version('1.2.3', '92a0f44a631c41aa06f9716c51dcdb11')
|
||||
|
||||
def patch(self):
|
||||
if self.spec.satisfies('target=aarch64 %gcc@:5.9'):
|
||||
filter_file('-mtune=native', '', 'CMakeLists.txt')
|
||||
|
||||
def cmake_args(self):
|
||||
args = ['-DBUILD_SHARED_LIBS=ON']
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue