USER-INTEL.cmake: clean up, create imported targets
This commit is contained in:
@ -44,7 +44,7 @@ if(PKG_USER-INTEL)
|
||||
|
||||
find_package(TBB_MALLOC QUIET)
|
||||
if(TBB_MALLOC_FOUND)
|
||||
target_link_libraries(lammps PRIVATE ${TBB_MALLOC_LIBRARIES})
|
||||
target_link_libraries(lammps PRIVATE TBB::TBB_MALLOC)
|
||||
else()
|
||||
target_compile_definitions(lammps PRIVATE -DLMP_INTEL_NO_TBB)
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
||||
@ -55,7 +55,7 @@ if(PKG_USER-INTEL)
|
||||
find_package(MKL QUIET)
|
||||
if(MKL_FOUND)
|
||||
target_compile_definitions(lammps PRIVATE -DLMP_USE_MKL_RNG)
|
||||
target_link_libraries(lammps PRIVATE ${MKL_LIBRARIES})
|
||||
target_link_libraries(lammps PRIVATE MKL::MKL)
|
||||
else()
|
||||
message(STATUS "Pair style dpd/intel will be faster with MKL libraries")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user