Disable ARM-specific tests when ARM is unavailable.

This commit is contained in:
relapids
2022-08-18 18:29:24 -07:00
parent 336425b588
commit 154a21d6a3
2 changed files with 12 additions and 1 deletions

View File

@@ -1403,6 +1403,9 @@ if(UNICORN_BUILD_TESTS)
add_executable(${TEST_FILE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/unit/${TEST_FILE}.c
)
target_compile_options(${TEST_FILE} PRIVATE
${UNICORN_COMPILE_OPTIONS}
)
target_link_libraries(${TEST_FILE} PRIVATE
${SAMPLES_LIB}
)