Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

import os

from spack_repo.builtin.build_systems.cmake import CMakePackage, generator

from spack.package import *
Expand Down Expand Up @@ -104,8 +106,10 @@ def check(self):
@run_after("install")
def fix_ioda_yaml_root_path(self):
with when("@2.9.0.20250826"):
# use either lib64 or lib depending on OS
libdir = "lib64" if os.path.isdir(join_path(self.prefix, "lib64")) else "lib"
filter_file(
join_path(self.build_directory, "share/test/testinput/"),
join_path(self.prefix, "share/ioda/yaml"),
join_path(self.prefix, "lib64/cmake/ioda/ioda-import.cmake"),
join_path(self.prefix, libdir, "cmake/ioda/ioda-import.cmake"),
)
Loading