|
|
Stuf |
|
|
\ No newline at end of file |
|
|
## [Basic build instructions](Building)
|
|
|
## Regarding CMake
|
|
|
As [explained above](Building) we are using CMake to generate our Makefiles.
|
|
|
|
|
|
In the build directory, CMake will generate a *CMakeCache.txt* file that contains the configuration of the build. Among the configuration variables of interest:
|
|
|
|
|
|
* **CMAKE_BUILD_TYPE**: setting this variable do **Debug** will trigger a debug build.
|
|
|
* **CMAKE_CXX_FLAGS_DEBUG**: this contains the compilation option for debug build. Some of them will have a huge (bad) impact on performance. Apart from the traditional **-g** option, one can add *when compiling with Intel* a combination of:
|
|
|
* **-D_GLIBCXX_DEBUG** with will enable a lot of runtime checks into the support library, including systematic bound checking for the C++ STL containers.
|
|
|
* **-fp-trap-all=common** with will activate floating point checking, including division by zero. Can |
|
|
\ No newline at end of file |