Fix build with latest LbScripts
after the update of toolchain.cmake in Gaudi (v28r2) and LbScripts, Gauss cannot build anymore against old versions of Gaudi.
To fix the build I imported GaudiBuildFlags.cmake
from Gaudi and adapted it to build with -O2
for old versions of Gaudi (the default is now -O3
).