Browse Source

[cmake] fix dynarmic tests

The old style `add_test` invocation is not target aware which means that
trying to run the test via `ninja test` results in:

    Could not find executable dynarmic_tests

Signed-off-by: Marcin Serwin <marcin@serwin.dev>
pull/3192/head
Marcin Serwin 2 days ago
parent
commit
c428e58772
No known key found for this signature in database GPG Key ID: DACFAC4EA0B194E0
  1. 2
      src/dynarmic/tests/CMakeLists.txt

2
src/dynarmic/tests/CMakeLists.txt

@ -134,4 +134,4 @@ target_include_directories(dynarmic_tests PRIVATE . ../src)
target_compile_options(dynarmic_tests PRIVATE ${DYNARMIC_CXX_FLAGS})
target_compile_definitions(dynarmic_tests PRIVATE FMT_USE_USER_DEFINED_LITERALS=1)
add_test(dynarmic_tests dynarmic_tests --durations yes)
add_test(NAME dynarmic_tests COMMAND dynarmic_tests --durations yes)
Loading…
Cancel
Save