diff --git a/perftest/CMakeLists.txt b/perftest/CMakeLists.txt index f0215a6df..29019b0ff 100644 --- a/perftest/CMakeLists.txt +++ b/perftest/CMakeLists.txt @@ -6,6 +6,7 @@ foreach(TEST ${PERFTESTS}) if(FINUFFT_USE_DUCC0) target_compile_definitions(${TEST} PRIVATE -DFINUFFT_USE_DUCC0) endif() + target_link_libraries(${TEST} PRIVATE xsimd) finufft_link_test(${TEST}) add_executable(${TEST}f ${TEST}.cpp) @@ -13,6 +14,7 @@ foreach(TEST ${PERFTESTS}) if(FINUFFT_USE_DUCC0) target_compile_definitions(${TEST}f PRIVATE -DFINUFFT_USE_DUCC0) endif() + target_link_libraries(${TEST}f PRIVATE xsimd) finufft_link_test(${TEST}f) endforeach() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3736c2caa..50b0210e2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -13,11 +13,13 @@ set(TESTS foreach(TEST ${TESTS}) add_executable(${TEST} ${TEST}.cpp) target_compile_features(${TEST} PRIVATE cxx_std_17) + target_link_libraries(${TEST} PRIVATE xsimd) finufft_link_test(${TEST}) add_executable(${TEST}f ${TEST}.cpp) target_compile_definitions(${TEST}f PRIVATE -DSINGLE) target_compile_features(${TEST}f PRIVATE cxx_std_17) + target_link_libraries(${TEST}f PRIVATE xsimd) finufft_link_test(${TEST}f) endforeach()