CMake custom targets
The Custom targets with the same names in CMake cannot be shared between projects. This causes troubles when we include other projects from the main project. For example, libmath-support
fetches libfortran-support
, but they both have the CMake target format
.
MR !50 (merged) provides a workaround to the problem.
However, we should build up a proper solution so that we don't have to do the same workaround every time we add a new custom_target
or a new library.
ROCm, for example, provides shared CMake targets for such operations https://github.com/ROCm/rocm-cmake/tree/develop/share/rocmcmakebuildtools/cmake.
We should also set up guidelines for future developments regarding naming for CMake targets.
For example, library-specific targets should be prefixed (#9), format
, test
, check
, or something software development related stuff should be shared.