File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ if (CMAKE_CXX_COMPILER_ID IN_LIST GNU_LIKE_FRONTENDS)
2929endif ()
3030
3131include (CTest)
32+ # Set default build type to Release
33+ if (NOT CMAKE_BUILD_TYPE )
34+ set (CMAKE_BUILD_TYPE Release CACHE STRING "Set the default build type to Release" FORCE)
35+ endif ()
3236
3337if (CMAKE_CXX_COMPILER_ID IN_LIST GNU_LIKE_FRONTENDS)
3438 if (CMAKE_SYSTEM_PROCESSOR MATCHES "ppc|ppc64|powerpc|powerpc64" OR (APPLE AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc|ppc64" ))
@@ -228,11 +232,13 @@ if (FINUFFT_USE_CPU)
228232 target_compile_definitions (finufft_f32_dll PRIVATE SINGLE dll_EXPORTS FINUFFT_DLL)
229233 set_finufft_options(finufft_f32_dll)
230234 target_link_libraries (finufft_f32_dll PUBLIC ${FINUFFT_FFTLIBS} )
235+ target_link_libraries (finufft_f32_dll PRIVATE xsimd)
231236
232237 add_library (finufft_f64_dll OBJECT ${FINUFFT_PRECISION_DEPENDENT_SOURCES} )
233238 target_compile_definitions (finufft_f64_dll PRIVATE dll_EXPORTS FINUFFT_DLL)
234239 set_finufft_options(finufft_f64_dll)
235240 target_link_libraries (finufft_f64_dll PUBLIC ${FINUFFT_FFTLIBS} )
241+ target_link_libraries (finufft_f64_dll PRIVATE xsimd)
236242 endif ()
237243
238244 add_library (finufft SHARED src/utils_precindep.cpp contrib/legendre_rule_fast.cpp)
Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ set(TESTS basicpassfail dumbinputs finufft1d_test finufft1dmany_test finufft2d_t
33
44foreach (TEST ${TESTS} )
55 add_executable (${TEST} ${TEST} .cpp)
6+ target_compile_features (${TEST} PRIVATE cxx_std_17)
67 finufft_link_test(${TEST} )
78
89 add_executable (${TEST} f ${TEST} .cpp)
910 target_compile_definitions (${TEST} f PRIVATE -DSINGLE)
11+ target_compile_features (${TEST} f PRIVATE cxx_std_17)
1012 finufft_link_test(${TEST} f)
1113endforeach ()
1214
You can’t perform that action at this time.
0 commit comments