I'm trying to build lapack for an installation of DL4J and am just having the most frustrating time of it. I have downloaded and uncompressed the source files to the directory c:\Users\myusername\lapack-3.5.0. Inside that folder I have created a subfolder called "build". I have also installed MinGW and used it to download the Fortran and C compilers (gfortran.exe and gcc.exe, respectively). I have installed CMAKE and, in the GUI for CMAKE, selected the source and build directories. After clicking the 'Configure' button I selected 'MinGW Makefiles' from the list of generators and chose to specify native compilers. After selecting the compilers and clicking next, I initially got an error from CMAKE about a missing CMakeLists.txt file. Not having any experience with CMAKE, I Googled Lapack+CMakeLists.txt and found a Github with a fully completed CMakeLists.txt file. I copied that file into my source directory, deleted the cache in CMAKE, and repeated the steps. Now I get another error:
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_Fortran_COMPILER_ENV_VAR
CMake Error: Could not find cmake module file: C:/Users/myusername/lapack-3.5.0/build/CMakeFiles/3.1.0/CMakeFortranCompiler.cmake
Configuring incomplete, errors occurred!
I have been Googling and reading pages for several hours now and my eyes are starting to bleed. I honestly have no idea what I'm missing or doing wrong. Are there any experienced users around that could offer me some advice?

