opm-simulators/cmake/Scripts
Andreas Lauser 2e9272384d build system: prevent endless loop when using dunecontrol
this seems to be a bug in cmake 2.8.10.2: if the user sets the
CMAKE_CXX_COMPILER variable for a build directory where this variable
has already been set, one gets an endless loop. This stings especially
if using the dunecontrol compatibility layer as the compiler flags are
unconditionally set via the CXX_FLAGS environment variable in the
options file. Running duncontrol on a module twice will thus trigger the
infinite loop if some compiler flags are set by the user.

The solution is relatively simple: Delete the CMakeFiles directory
before calling cmake. for the dunecontrol compatibility mode, we do
this in the configure script. For details about the cmake bug, see
http://www.cmake.org/Bug/view.php?id=14119
2013-11-25 11:38:13 +01:00
..
configure build system: prevent endless loop when using dunecontrol 2013-11-25 11:38:13 +01:00
DuneCompat2.cmake Import CMake support from OPM-Core 2013-05-15 10:24:52 +02:00
RemoveEmptyDir.cmake Import CMake support from OPM-Core 2013-05-15 10:24:52 +02:00
WriteVerSHA.cmake Write version information into header file 2013-08-14 23:39:03 +02:00