1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-12-01 06:08:08 +00:00

Offer a <PACKAGENAME>_ROOT CMake and environment variable as a way to define a base path to find packages

This commit is contained in:
Carles Fernandez
2018-12-01 19:09:44 +01:00
parent 6dd4733606
commit 961f8cee1f
23 changed files with 319 additions and 158 deletions

View File

@@ -20,17 +20,22 @@
# The following environment variable is optionally searched
# OPENBLAS_HOME: Base directory where all OpenBlas components are found
set(OPEN_BLAS_SEARCH_PATHS /lib/
/lib64/
/usr/lib
/usr/lib64
/usr/local/lib
/usr/local/lib64
/opt/OpenBLAS/lib
/opt/local/lib
/usr/lib/openblas-base
$ENV{OPENBLAS_HOME}/lib
)
set(OPEN_BLAS_SEARCH_PATHS
/lib
/lib64/
/usr/lib
/usr/lib64
/usr/local/lib
/usr/local/lib64
/opt/OpenBLAS/lib
/opt/local/lib
/usr/lib/openblas-base
$ENV{OPENBLAS_HOME}/lib
${OPENBLAS_ROOT}/lib
$ENV{OPENBLAS_ROOT}/lib
${OPENBLAS_ROOT}/lib64
$ENV{OPENBLAS_ROOT}/lib64
)
find_library(OPENBLAS NAMES openblas PATHS ${OPEN_BLAS_SEARCH_PATHS})