ENH: Configure glocal.C instead of using defines
commit7498e9bb117c03129defa271823ace1e4d6d443c
authorMichael Wild <themiwi@users.sourceforge.net>
Mon, 25 May 2009 06:40:05 +0000 (25 08:40 +0200)
committerMichael Wild <themiwi@users.sourceforge.net>
Mon, 25 May 2009 06:47:30 +0000 (25 08:47 +0200)
tree6545f58a834488e6ec6d5263c1648dc9916b8933
parentb108e96761eb53c68ec22474c2197c00b0b7ef7d
ENH: Configure glocal.C instead of using defines

This prevents the whole of the OpenFOAM library from being rebuilt on
some changes in the CMake configuration. The dependency is introduced by
flags.cmake on which all object files depend. Unfortunately, the custom
flags for global.C were recorded in there, provoking unnecessary
rebuilds.

Configuring global.C is the cleaner approach anyways.

Signed-off-by: Michael Wild <themiwi@users.sourceforge.net>
src/OpenFOAM/CMakeLists.txt
src/OpenFOAM/global/global.C [deleted file]
src/OpenFOAM/global/global.C.in [moved from src/OpenFOAM/global/global.Cver with 94% similarity]