mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
conda recipe: restore full tool paths in CMAKE_ARGS (#1688)
gcc_linux-64 16.2.0 build 3 (conda-forge/ctng-compiler-activation-feedstock#209) passes bare tool names such as -DCMAKE_AR=x86_64-conda-linux-gnu-ar. CMake resolves the untyped value relative to SRC_DIR, so archiving the first static library fails with 'ar: not found'. Prefix the names with BUILD_PREFIX/bin again; values that are already absolute are left alone.
This commit is contained in:
1 parent
e0956cb680
commit
45d8648fdf
1 file changed
+4
@@ -9,6 +9,10 @@ package:
|
||||
build:
|
||||
number: 0
|
||||
script:
|
||||
# gcc_linux-64 16.2.0 build 3 passes bare tool names in CMAKE_ARGS
|
||||
# (-DCMAKE_AR=x86_64-conda-linux-gnu-ar), which CMake resolves relative to
|
||||
# SRC_DIR. Restore the full paths; no-op when they are already absolute.
|
||||
- 'export CMAKE_ARGS="${CMAKE_ARGS//=${HOST}-/=${BUILD_PREFIX}/bin/${HOST}-}"' # [not win]
|
||||
- unset CMAKE_GENERATOR && {{ PYTHON }} -m pip install . -vv --config-settings=cmake.define.SLS_USE_SYSTEM_ZMQ=ON # [not win]
|
||||
|
||||
requirements:
|
||||
|
||||
Reference in new issue
Block a user