Hi,
I’m using CMake to cross-compile a library with conda-build. Everything seems to build just fine on one machine but I notice that during the configure step where I would usually expect full paths to found compilers and libraries it instead prints $BUILD_PREFIX/bin/...
or $PREFIX/lib/...
e.g.
-- Check for working CXX compiler: $BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-clang++ - skipped`
and
-- Found HDF5: $PREFIX/lib/libhdf5_cpp.dylib;$PREFIX/lib/libhdf5.dylib (found version "1.12.2") found components: CXX HL
-- Found ZLIB: $PREFIX/lib/libz.dylib (found version "1.2.13")
where $BUILD_PREFIX
and $PREFIX
are defined in the environment by conda-build
.
On another machine this replacement doesn’t happen and full paths are printed and the build gets errors. I’ve not observed this replacement of part of paths with environment variables before and could not find any documentation or parts of the CMake source that suggest when it occurs. Could anyone shed some light on this.
Many thanks.