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
16ad749c
Commit
16ad749c
authored
Oct 27, 2017
by
Sean Warren
Committed by
Davis E. King
Oct 27, 2017
Browse files
Win lapack (#913)
* Fall back on find_package for blas, lapack on Windows * Remove debugging message
parent
aa93c8f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
dlib/cmake_utils/cmake_find_blas.txt
dlib/cmake_utils/cmake_find_blas.txt
+28
-0
No files found.
dlib/cmake_utils/cmake_find_blas.txt
View file @
16ad749c
...
@@ -333,6 +333,34 @@ elseif(WIN32 AND NOT MINGW)
...
@@ -333,6 +333,34 @@ elseif(WIN32 AND NOT MINGW)
endif()
endif()
endif()
endif()
if (NOT blas_found)
find_package(blas)
if (${BLAS_FOUND})
set(blas_libraries ${BLAS_LIBRARIES})
set(blas_found 1)
set(CMAKE_REQUIRED_LIBRARIES ${blas_libraries})
# If you compiled OpenBLAS with LAPACK in it then it should have the
# sgetrf_single function in it. So if we find that function in
# OpenBLAS then just use OpenBLAS's LAPACK.
CHECK_FUNCTION_EXISTS(sgetrf_single OPENBLAS_HAS_LAPACK)
if (OPENBLAS_HAS_LAPACK)
message(STATUS "Using OpenBLAS's built in LAPACK")
# set(lapack_libraries gfortran)
set(lapack_found 1)
endif()
endif()
endif()
if (NOT lapack_found)
find_package(lapack)
if (${LAPACK_FOUND})
set(lapack_libraries ${LAPACK_LIBRARIES})
set(lapack_found 1)
message(STATUS "Found LAPACK library")
endif()
endif()
endif()
endif()
...
...
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