--- dlib/cmake_utils/cmake_find_blas.txt
+++ dlib/cmake_utils/cmake_find_blas.txt
@@ -156,15 +156,8 @@
          set(blas_found 1)
          message(STATUS "Found OpenBLAS library")
          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()
+         message(STATUS "Using OpenBLAS's built in LAPACK")
+         set(lapack_found 1)
       endif()
       mark_as_advanced( cblas_lib)
    endif()

