From baa79225bd13c055e95df0d4bcdc7a3213dd8861 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 2 Dec 2018 02:51:14 +0100 Subject: [PATCH] tsc: compile only on x86_64 --- common/tests/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/tests/CMakeLists.txt b/common/tests/CMakeLists.txt index 941258a7c..6c9ccc0e6 100644 --- a/common/tests/CMakeLists.txt +++ b/common/tests/CMakeLists.txt @@ -32,10 +32,13 @@ add_executable(unit-tests-common list.cpp task.cpp timing.cpp - tsc.cpp utils.cpp ) +if(ARCH STREQUAL "x86_64") + list(APPEND TEST_SRC tsc.cpp) +endif() + target_include_directories(unit-tests-common PUBLIC ${PROJECT_SOURCE_DIR}/include ${CRITERION_INCLUDE_DIRS}