1
0
Fork 0
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:
Steffen Vogel 2018-10-21 20:25:55 +01:00
parent 9c0ba4a174
commit 37aea20df8

View file

@ -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