[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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user