lanl / LaGriT

Los Alamos Grid Toolbox (LaGriT) is a library of user callable tools that provide mesh generation, mesh optimization and dynamic mesh maintenance in two and three dimensions.
https://lanl.github.io/LaGriT/
Other
122 stars 49 forks source link

check clang version and add flag "-Wno-error=implicit-int" #260

Closed gthyagi closed 5 months ago

gthyagi commented 5 months ago

Hi,

I've made adjustments to the CompilerFlags-C.cmake file to resolve the clang error on MacBook Pro.

The fix operates in the following manner: I verify the clang version. If the version is greater than or equal to 15, then I set the C/C++ flags to include -Wno-error=implicit-int.

At present, my MacBook has clang version 15.0.0, so I've set the condition as version >= 15. If other users encounter the same issue with different version, then please adjust this condition accordingly.

Cheers