mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-18 15:57:05 +01:00
Hadrons: moving Hadrons to root directory, build system improvements
This commit is contained in:
12
Grid/util/version.cc
Normal file
12
Grid/util/version.cc
Normal file
@ -0,0 +1,12 @@
|
||||
#include <iostream>
|
||||
#include <version.h>
|
||||
namespace Grid {
|
||||
void printHash(){
|
||||
#ifdef GITHASH
|
||||
std::cout << "Current Grid git commit hash=" << GITHASH << std::endl;
|
||||
#else
|
||||
std::cout << "Current Grid git commit hash is undefined. Check makefile." << std::endl;
|
||||
#endif
|
||||
#undef GITHASH
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user