Skip to content
Snippets Groups Projects
  • Benjamin Cumming's avatar
    Add optional target-specific configuration for CMake (#1586) · bcd2ca1e
    Benjamin Cumming authored
    - Add an optional CMake option `ARB_CXX_FLAGS_TARGET` for setting target-specific flags to use when compiling for the target architecture (not applied to compilation of modcc).
    - If `ARB_ARCH=="none"` CMake will not add architecture-specific `mtune/march/mcpu` flags
    - Remove `ARB_CXXOPT_ARCH` from the installed `arbor-config.cmake`, and replace with more general `ARB_CXX_FLAGS_TARGET`.
    - Update spack `package.py` to use this feature to pass custom flags.
    
    Fixes #1519
    Fixes #1522 
    
    Replaces PR #1518 
    Unverified
    bcd2ca1e