File: GetArchitecture.cmake

package info (click to toggle)
broccoli-python 0.62-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 460 kB
  • ctags: 105
  • sloc: python: 407; sh: 202; makefile: 21
file content (8 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (26)
1
2
3
4
5
6
7
8

# Determine a tag for the host architecture (e.g., "linux-x86_64").
# We run uname ourselves here as CMAKE by default uses -p rather than
# -m.

execute_process(COMMAND uname -m OUTPUT_VARIABLE arch OUTPUT_STRIP_TRAILING_WHITESPACE)
set(HOST_ARCHITECTURE "${CMAKE_SYSTEM_NAME}-${arch}")
string(TOLOWER ${HOST_ARCHITECTURE} HOST_ARCHITECTURE)