Sync the dftd4 workaround to package exporting (#5629)

This commit is contained in:
SY Wang 2026-07-29 16:18:12 +08:00 committed by GitHub
parent 9cbee8b47c
commit be00458b03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,6 +144,7 @@ if(NOT TARGET cp2k::cp2k)
set(CP2K_USE_DFTD4 @CP2K_USE_DFTD4@)
if(CP2K_USE_DFTD4)
find_dependency(mctc-lib REQUIRED) # workaround: find mctc-lib first
find_dependency(dftd4 REQUIRED)
endif()