adios2: export adios2_DIR before installPahse

adios2_DIR needs to be set to a different value before checkPhase/installPahse.
This commit is contained in:
qbisi
2025-06-06 16:23:29 +08:00
parent d5c7b1241a
commit bd786e7e99

View File

@@ -105,8 +105,10 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "CMAKE_INSTALL_PYTHONDIR" python3.sitePackages)
];
# equired for finding the generated adios2-config.cmake file
env.adios2_DIR = "${placeholder "out"}/lib/cmake/adios2";
# required for finding the generated adios2-config.cmake file
preInstall = ''
export adios2_DIR=$out/lib/cmake/adios2
'';
# Ctest takes too much time, so we only perform some smoke Python tests.
doInstallCheck = pythonSupport;