You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to include oneCCL inside another build directly.
add_subdirectory(oneCCL)
This entails that all CMake configuration arguments should be prefixed by something like ONECCL_ to avoid name conflicts.
Also all targets should be prefixed. E.g. oneccl::.
Another thing is to allow for all dependencies like googletest to be excludable from the build an provided externally. They may be defined somewhere else in the super build. E.g. ONECCL_GOOGLE_TEST_EXTERNAL=ON.
The text was updated successfully, but these errors were encountered:
This is more of a feature request.
Nowadays it is very common for CMake projects to have a superbuild where most/all its dependencies are included in the superbuild and built together with the project.
To achieve this properly you also need to be able to exclude your dependency from your superbuild but have the provided from outside to prevent conflicts with other dependencies' superbuild.
A classic example is gtest because it is often included in the superbuild. OneCCL is also doing this here
which is not the proper way to do it in CMake >= 3.0. You should use targets wherever possible and let the target provide its include directories and link libraries.
It would be nice to be able to include oneCCL inside another build directly.
This entails that all CMake configuration arguments should be prefixed by something like
ONECCL_
to avoid name conflicts.Also all targets should be prefixed. E.g.
oneccl::
.Another thing is to allow for all dependencies like googletest to be excludable from the build an provided externally. They may be defined somewhere else in the super build. E.g.
ONECCL_GOOGLE_TEST_EXTERNAL=ON
.The text was updated successfully, but these errors were encountered: