KSPACE.cmake: use MKL imported target

This commit is contained in:
Christoph Junghans 2020-04-05 14:38:59 -06:00
parent e8317b2f6b
commit 5411ae698f
1 changed files with 1 additions and 2 deletions

View File

@ -41,8 +41,7 @@ if(PKG_KSPACE)
if(FFT_MKL_THREADS)
target_compile_definitions(lammps PRIVATE -DFFT_MKL_THREADS)
endif()
target_include_directories(lammps PRIVATE ${MKL_INCLUDE_DIRS})
target_link_libraries(lammps PRIVATE ${MKL_LIBRARIES})
target_link_libraries(lammps PRIVATE MKL::MKL)
else()
# last option is KISSFFT
target_compile_definitions(lammps PRIVATE -DFFT_KISS)