hipfort icon indicating copy to clipboard operation
hipfort copied to clipboard

Move architecture depending CMake variables into toolchain file

Open domcharrier opened this issue 3 years ago • 2 comments
trafficstars

The variable 'CMAKE_Fortran_FLAGS' should only be set by the cmake toolchain,

  • either by calling cmake -DCMAKE_Fortran_FLAGS=" -ffree-form -cpp -ffree-line-length-none -fmax-errors=5 -std=f2008 -fno-underscoring or
  • set in a toolchain file and added with 'cmake -DCMAKE_TOOLCHAIN_FILE='.

domcharrier avatar Feb 09 '22 19:02 domcharrier

Hey @cgmb - Is this ticket still relevant ?

fluidnumerics-joe avatar Mar 13 '25 13:03 fluidnumerics-joe

Surprisingly, yes. At least, I think so. We're using CMake features for some of these, but I think we do want to better leverage toolchain files. I'm open to differing opinions, of course.

cgmb avatar Apr 19 '25 18:04 cgmb