Skip to content

Commit 3768bfd

Browse files
committed
Skip RISC-V unit test without CAPSTONE_RISCV_SUPPORT
1 parent a1e92c4 commit 3768bfd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
cmake_minimum_required(VERSION 3.15)
22

33
enable_testing()
4-
set(UNIT_TEST_SOURCES sstream.c utils.c riscv_op_count_iter.c)
4+
set(UNIT_TEST_SOURCES sstream.c utils.c)
5+
if(CAPSTONE_RISCV_SUPPORT)
6+
list(APPEND UNIT_TEST_SOURCES riscv_op_count_iter.c)
7+
endif()
58
include_directories(include)
69

710
foreach(TSRC ${UNIT_TEST_SOURCES})

0 commit comments

Comments
 (0)