mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cmake: rdtsc is only supported on x86
This commit is contained in:
parent
9c0ba4a174
commit
37aea20df8
1 changed files with 10 additions and 1 deletions
|
@ -39,7 +39,6 @@ add_library(villas-common SHARED
|
|||
memory_manager.cpp
|
||||
plugin.cpp
|
||||
table.c
|
||||
tsc.c
|
||||
task.c
|
||||
timing.c
|
||||
utils.c
|
||||
|
@ -49,6 +48,16 @@ add_library(villas-common SHARED
|
|||
version.cpp
|
||||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND uname -m
|
||||
COMMAND tr -d '\n'
|
||||
OUTPUT_VARIABLE ARCH
|
||||
)
|
||||
|
||||
if(ARCH STREQUAL "x86_64")
|
||||
target_sources(villas-common PRIVATE tsc.c)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
|
||||
target_sources(villas-common PRIVATE
|
||||
kernel/pci.c
|
||||
|
|
Loading…
Add table
Reference in a new issue