Skip to content

Commit

Permalink
Merge pull request #523 from JCSDA/AlexanderRichert-NOAA-patch-1
Browse files Browse the repository at this point in the history
crtm: softlink *cmake config files to usable path
  • Loading branch information
AlexanderRichert-NOAA authored Mar 4, 2025
2 parents 5c04e48 + 3385da8 commit 60244b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions var/spack/repos/builtin/packages/crtm/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

import glob
import os

from spack.package import *


Expand Down Expand Up @@ -101,3 +104,10 @@ def patch(self):
filter_file(
"-fbacktrace", "-fbacktrace -ffree-line-length-none", "libsrc/CMakeLists.txt"
)

@run_after("install")
@when("@3.1.1-build1")
def cmake_config_softlinks(self):
cmake_config_files = glob.glob(join_path(self.prefix, "cmake/crtm/*"))
for srcpath in cmake_config_files:
os.symlink(srcpath, join_path(self.prefix, "cmake", os.path.basename(srcpath)))

0 comments on commit 60244b8

Please sign in to comment.