Add optional target-specific configuration for CMake (#1586)
- 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
Showing
- CMakeLists.txt 19 additions, 4 deletionsCMakeLists.txt
- cmake/arbor-config.cmake.in 1 addition, 1 deletioncmake/arbor-config.cmake.in
- doc/internals/extending_catalogues.rst 1 addition, 0 deletionsdoc/internals/extending_catalogues.rst
- mechanisms/BuildModules.cmake 3 additions, 4 deletionsmechanisms/BuildModules.cmake
- mechanisms/CMakeLists.txt 3 additions, 0 deletionsmechanisms/CMakeLists.txt
- python/test/cpp/CMakeLists.txt 1 addition, 1 deletionpython/test/cpp/CMakeLists.txt
- scripts/build-catalogue 1 addition, 0 deletionsscripts/build-catalogue
- spack/package.py 4 additions, 2 deletionsspack/package.py
- sup/CMakeLists.txt 1 addition, 1 deletionsup/CMakeLists.txt
- test/ubench/CMakeLists.txt 1 addition, 1 deletiontest/ubench/CMakeLists.txt
- test/unit-distributed/CMakeLists.txt 2 additions, 2 deletionstest/unit-distributed/CMakeLists.txt
- test/unit/CMakeLists.txt 2 additions, 1 deletiontest/unit/CMakeLists.txt
Please register or sign in to comment