mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'style-compile-def' into 'develop'
ENH: distinguish OpenFOAM version for user-coding (fixes #195) The pre-processor macro 'OPENFOAM_PLUS' is defined with a numerical value equal to the currently compatible version number. This can be used judiciously within user coding to help with minor differences between OpenFOAM versions. For example, #ifdef OPENFOAM_PLUS #if (OPENFOAM_PLUS >= 1612) ... #endif #endif or simply #if (OPENFOAM_PLUS >= 1612) ... #endif See merge request !56
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#-------------------------------*- makefile -*---------------------------------
|
||||
WM_VERSION = OPENFOAM_PLUS=1606
|
||||
|
||||
AR = ar
|
||||
ARFLAGS = cr
|
||||
@ -6,7 +7,7 @@ RANLIB = ranlib
|
||||
CPP = cpp
|
||||
LD = ld
|
||||
|
||||
GFLAGS = -D$(WM_ARCH) -DWM_ARCH_OPTION=$(WM_ARCH_OPTION) \
|
||||
GFLAGS = -D$(WM_VERSION) -D$(WM_ARCH) -DWM_ARCH_OPTION=$(WM_ARCH_OPTION) \
|
||||
-DWM_$(WM_PRECISION_OPTION) -DWM_LABEL_SIZE=$(WM_LABEL_SIZE)
|
||||
GINC =
|
||||
GLIBS = -lm
|
||||
|
||||
Reference in New Issue
Block a user