Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
7d0ec0bc
Unverified
Commit
7d0ec0bc
authored
Jan 24, 2022
by
Peter Eastman
Committed by
GitHub
Jan 24, 2022
Browse files
TargetArch.cmake supports ARM Macs (#3421)
parent
6d483062
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
cmake_modules/TargetArch.cmake
cmake_modules/TargetArch.cmake
+6
-0
No files found.
cmake_modules/TargetArch.cmake
View file @
7d0ec0bc
...
...
@@ -112,6 +112,8 @@ function(target_architecture output_var)
foreach
(
osx_arch
${
CMAKE_OSX_ARCHITECTURES
}
)
if
(
"
${
osx_arch
}
"
STREQUAL
"ppc"
AND ppc_support
)
set
(
osx_arch_ppc TRUE
)
elseif
(
"
${
osx_arch
}
"
STREQUAL
"arm64"
)
set
(
osx_arch_arm64 TRUE
)
elseif
(
"
${
osx_arch
}
"
STREQUAL
"i386"
)
set
(
osx_arch_i386 TRUE
)
elseif
(
"
${
osx_arch
}
"
STREQUAL
"x86_64"
)
...
...
@@ -128,6 +130,10 @@ function(target_architecture output_var)
list
(
APPEND ARCH ppc
)
endif
()
if
(
osx_arch_arm64
)
list
(
APPEND ARCH arm64
)
endif
()
if
(
osx_arch_i386
)
list
(
APPEND ARCH i386
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment