Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
17948a78
Unverified
Commit
17948a78
authored
May 07, 2021
by
Michał Janiszewski
Committed by
GitHub
May 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MSVC ARM64 support to cmake (#1090)
parent
a53b8853
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
CMakeLists.txt
CMakeLists.txt
+11
-0
No files found.
CMakeLists.txt
View file @
17948a78
...
...
@@ -37,6 +37,17 @@ option(BENCHMARK_ENABLE_GTEST_TESTS "Enable building the unit tests which depend
option
(
BENCHMARK_ENABLE_LIBPFM
"Enable performance counters provided by libpfm"
OFF
)
set
(
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON
)
if
(
MSVC
)
# As of CMake 3.18, CMAKE_SYSTEM_PROCESSOR is not set properly for MSVC and
# cross-compilation (e.g. Host=x86_64, target=aarch64) requires using the
# undocumented, but working variable.
# See https://gitlab.kitware.com/cmake/cmake/-/issues/15170
set
(
CMAKE_SYSTEM_PROCESSOR
${
MSVC_CXX_ARCHITECTURE_ID
}
)
if
(
${
CMAKE_SYSTEM_PROCESSOR
}
MATCHES
"ARM"
)
set
(
CMAKE_CROSSCOMPILING TRUE
)
endif
()
endif
()
set
(
ENABLE_ASSEMBLY_TESTS_DEFAULT OFF
)
function
(
should_enable_assembly_tests
)
if
(
CMAKE_BUILD_TYPE
)
...
...
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