TRIQS/TRIQS — pull request #36 by nstange (2012-02-17 13:16:51+00:00)
Title: Compile error with ifort due to unquoted GIT_HASH cpp macro definition

Depending on whether the GIT hash starts with a digit or not, I get the following error when it comes to compilation of some Fortran sources:
<--snip-->
[ 88%] Building Fortran object pytriqs/Wien2k/dmftproj/CMakeFiles/dmftproj.dir/modules.f.o
: catastrophic error: Internal Compiler Error: Unrecognized characters in value qualifier: 7c9ea4b79e4e115fc953b3af41bd4c59d9d4f865

compilation aborted for /afs/physnet.uni-hamburg.de/users/th1_le/nstange/TRIQS/pytriqs/Wien2k/dmftproj/modules.f (code 1)
<--snap-->
(sorry, I've lost the VERBOSE=1 make output).

The reason for this is that ifort gets called like this:
$ ifort -DGIT_HASH=7c9ea4b79e4e115fc953b3af41bd4c59d9d4f865
and it doesn't seem to like it. Hashes starting with a letter work fine.

I fixed this for me by #defining GIT_HASH to be a string.
Currently, no sources make use of the GIT_HASH macro, but I guess this won't cause any problems if they will some day.