diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d7c7130b..5bc575892 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,7 +112,7 @@ function(finufft_link_test target) target_compile_definitions(${target} PRIVATE FINUFFT_DLL) endif() endif() - target_link_libraries(${target} PUBLIC finufft) + target_link_libraries(${target} PRIVATE finufft) enable_asan(${target}) endfunction() @@ -167,6 +167,7 @@ if(FINUFFT_USE_CPU) target_compile_definitions(finufft_f64 PRIVATE) set_finufft_options(finufft_f64) target_link_libraries(finufft_f64 PUBLIC ${FINUFFT_FFTW_LIBRARIES}) + if(WIN32) add_library(finufft_f32_dll OBJECT ${FINUFFT_PRECISION_DEPENDENT_SOURCES}) target_compile_definitions(finufft_f32_dll PRIVATE SINGLE dll_EXPORTS FINUFFT_DLL) diff --git a/devel/CMakeLists.txt b/devel/CMakeLists.txt index 01b8e48dd..3289f25ee 100644 --- a/devel/CMakeLists.txt +++ b/devel/CMakeLists.txt @@ -18,4 +18,4 @@ if (benchmark_ADDED) endif() add_executable(foldrescale foldrescale.cpp) -target_link_libraries(foldrescale finufft benchmark) \ No newline at end of file +target_link_libraries(foldrescale finufft benchmark)