Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
b34b25a1
Commit
b34b25a1
authored
Jan 22, 2013
by
Davis King
Browse files
Expanded the set of folder we search when looking for BLAS and
LAPACK.
parent
98628bfe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
dlib/cmake_find_blas.txt
dlib/cmake_find_blas.txt
+14
-5
No files found.
dlib/cmake_find_blas.txt
View file @
b34b25a1
...
@@ -70,9 +70,18 @@ if (UNIX)
...
@@ -70,9 +70,18 @@ if (UNIX)
# try to find some other LAPACK libraries if we didn't find the MKL
# try to find some other LAPACK libraries if we didn't find the MKL
set(extra_paths
/usr/lib64
/usr/lib64/atlas-sse3
/usr/lib64/atlas-sse2
/usr/lib64/atlas
/usr/lib/atlas-sse3
/usr/lib/atlas-sse2
/usr/lib/atlas)
if (NOT lapack_found)
if (NOT lapack_found)
find_library(lapack_lib NAMES lapack lapack-3)
find_library(lapack_lib NAMES lapack lapack-3
PATHS ${extra_paths}
)
if (lapack_lib)
if (lapack_lib)
set(lapack_libraries ${lapack_lib})
set(lapack_libraries ${lapack_lib})
set(lapack_found 1)
set(lapack_found 1)
...
@@ -85,8 +94,8 @@ if (UNIX)
...
@@ -85,8 +94,8 @@ if (UNIX)
# try to find some other BLAS libraries if we didn't find the MKL
# try to find some other BLAS libraries if we didn't find the MKL
if (NOT blas_found)
if (NOT blas_found)
find_library(atlas_lib atlas)
find_library(atlas_lib atlas
PATHS ${extra_paths}
)
find_library(cblas_lib cblas)
find_library(cblas_lib cblas
PATHS ${extra_paths}
)
if (atlas_lib AND cblas_lib)
if (atlas_lib AND cblas_lib)
set(blas_libraries ${atlas_lib} ${cblas_lib})
set(blas_libraries ${atlas_lib} ${cblas_lib})
set(blas_found 1)
set(blas_found 1)
...
@@ -97,7 +106,7 @@ if (UNIX)
...
@@ -97,7 +106,7 @@ if (UNIX)
if (NOT blas_found)
if (NOT blas_found)
find_library(cblas_lib cblas)
find_library(cblas_lib cblas
PATHS ${extra_paths}
)
if (cblas_lib)
if (cblas_lib)
set(blas_libraries ${cblas_lib})
set(blas_libraries ${cblas_lib})
set(blas_found 1)
set(blas_found 1)
...
@@ -108,7 +117,7 @@ if (UNIX)
...
@@ -108,7 +117,7 @@ if (UNIX)
if (NOT blas_found)
if (NOT blas_found)
find_library(generic_blas blas)
find_library(generic_blas blas
PATHS ${extra_paths}
)
if (generic_blas)
if (generic_blas)
set(blas_libraries ${generic_blas})
set(blas_libraries ${generic_blas})
set(blas_found 1)
set(blas_found 1)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment