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}