We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4517933 commit a973de6Copy full SHA for a973de6
CMakeLists.txt
@@ -180,6 +180,7 @@ else(LAPACK_FOUND)
180
find_package(LAPACK)
181
ENDIF(USE_OPTIMIZED_LAPACK_BLAS)
182
if(NOT LAPACK_FOUND)
183
+ unset(BLAS_LIBRARIES) # override "FALSE" variable that leaks from find_package(LAPACK) and Cache by defintion doesn't override
184
message(STATUS "--> LAPACK and BLAS were not found. Reference LAPACK and BLAS will be downloaded and installed")
185
SET(LAPACK_LIBRARIES ${SCALAPACK_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/liblapack${CMAKE_STATIC_LIBRARY_SUFFIX} CACHE STRING "LAPACK library" FORCE)
186
SET(BLAS_LIBRARIES ${SCALAPACK_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/libblas${CMAKE_STATIC_LIBRARY_SUFFIX} CACHE STRING "BLAS library" FORCE)
0 commit comments