make sure liblinalg is built before linking phana
This commit is contained in:
@ -119,5 +119,9 @@ if(USE_SPGLIB)
|
||||
target_link_libraries(phana PRIVATE SPGLIB::SYMSPG)
|
||||
endif()
|
||||
|
||||
# add dependency when using local linear algebra lib
|
||||
if(NOT LAPACK_FOUND OR NOT BLAS_FOUND OR USE_INTERNAL_LINALG)
|
||||
add_dependencies(phana linalg)
|
||||
endif()
|
||||
target_link_libraries(phana PRIVATE tricubic ${LAPACK_LIBRARIES})
|
||||
install(TARGETS phana EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
Reference in New Issue
Block a user