[BUG FIX] Test install.

CMake may change install directory structure (local/lib or
local/lib/arch). Use find to prevent tests from this.
This commit is contained in:
Franck HOUSSEN
2022-04-30 18:42:28 +02:00
parent e7abe8b42b
commit bf82f61b13
2 changed files with 9 additions and 4 deletions
+6 -3
View File
@@ -19,9 +19,12 @@ make all install
# 3. Setup environment for find_package to work (what you typically in module-environment files).
cd "${TMP_DIR}"
export ARCH="$(ls ./local/lib/)"
export PKG_CONFIG_PATH="${TMP_PREFIX}/lib/${ARCH}/pkgconfig"
export arpackng_DIR="${TMP_PREFIX}/lib/${ARCH}/cmake/arpack-ng"
export PKG_CONFIG_PATH="$(find ${TMP_PREFIX} -name arpack${LIBSUFFIX}.pc)"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH%/*}" # Same as dirname.
echo "PKG_CONFIG_PATH: $PKG_CONFIG_PATH"
export arpackng_DIR="$(find ${TMP_PREFIX} -name arpackng-config.cmake)"
export arpackng_DIR="${arpackng_DIR%/*}" # Same as dirname.
echo "arpackng_DIR: $arpackng_DIR"
# 4. Create new cmake project, in temporary directory, with files from arpack-ng.
+3 -1
View File
@@ -23,7 +23,9 @@ make all install
# 3. Setup environment for PKG_CHECK_MODULES to work (what you typically in module-environment files).
cd "${TMP_DIR}"
export PKG_CONFIG_PATH="${TMP_PREFIX}/lib/pkgconfig"
export PKG_CONFIG_PATH="$(find ${TMP_PREFIX} -name arpack${LIBSUFFIX}.pc)"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH%/*}" # Same as dirname.
echo "PKG_CONFIG_PATH: $PKG_CONFIG_PATH"
# 4. Create new cmake project, in temporary directory, with files from arpack-ng.