Skip to content

Commit

Permalink
Add proper compile definition when XTL has been configured
Browse files Browse the repository at this point in the history
Basically so that -DENABLE_XTL_COMPLEX=On at configuration step implies
-DXSIMD_ENABLE_XTL_COMPLEX=1 for the tests.

Fix #942
  • Loading branch information
serge-sans-paille committed Oct 8, 2023
1 parent d5d58db commit 2b2634d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ else()
endif()

if(ENABLE_XTL_COMPLEX)
target_include_directories(test_xsimd PRIVATE ${xtl_INCLUDE_DIRS})
add_compile_definitions(XSIMD_ENABLE_XTL_COMPLEX=1)
target_include_directories(test_xsimd PRIVATE ${xtl_INCLUDE_DIRS})
endif()
add_test(NAME test_xsimd COMMAND test_xsimd)

Expand Down

0 comments on commit 2b2634d

Please sign in to comment.