cmake: fftw needs to be public due to DSO

This commit is contained in:
Christoph Junghans
2020-03-23 08:00:51 -06:00
parent a42f7163d2
commit 6ee25db32a

View File

@ -19,7 +19,7 @@ if(PKG_KSPACE)
if(FFT STREQUAL "FFTW3") if(FFT STREQUAL "FFTW3")
find_package(${FFTW} REQUIRED) find_package(${FFTW} REQUIRED)
add_definitions(-DFFT_FFTW3) add_definitions(-DFFT_FFTW3)
target_link_libraries(lammps PRIVATE ${FFTW}::${FFTW}) target_link_libraries(lammps PUBLIC ${FFTW}::${FFTW})
if(FFTW3_OMP_LIBRARY OR FFTW3F_OMP_LIBRARY) if(FFTW3_OMP_LIBRARY OR FFTW3F_OMP_LIBRARY)
option(FFT_FFTW_THREADS "Use threaded FFTW library" ON) option(FFT_FFTW_THREADS "Use threaded FFTW library" ON)
else() else()