On 07/22/2015 02:19 PM, Bruno Turcksin wrote:
> I apologize for my ignorance but what is the purpose of the cmake script?
> Is there anything in there that that compiler needs to compile?
>
>
> cmake create the Makefile used to compile deal.II
This is actually only a small part of what cmake does. In general, the purpose
of cmake scripts are these:
- Determine the properties of your system, i.e., which tools are installed,
where are they located, how can then be called, etc.
- Determine their properties, such as compiler bugs we need to work around,
etc.
- Determine which external libraries (e.g., Trilinos, PETSc, ...) are
installed
- Figure out *what* needs to be compiled, and *how* it needs to be compiled.
This includes include paths, compiler flags, linker lines, etc. It also
includes compiling tools we need as part of the build process but that
are not part of the deal.II libraries we ultimately want to have (e.g., the
script that converts the .
inst.in files into the .inst files)
Once all of this has happened, cmake creates the file that describe the build
process. This can be a standard Unix Makefile, or a Visual Studio project file.
In any case, cmake does many more things that just enumerate the .cc files and
point the compiler at the location of header files. There is probably a year's
work of Matthias's time in the cmake scripts. You won't want to re-create all
of this work but rather let cmake create the MS VS project files.
Best
W.