Skip to content

Conversation

@AlexeySachkov
Copy link
Contributor

This is one patch in a series intended to re-organize add_sycl_rt_library helper function to make it shorter and simpler.

Cleaned up add_dependencies calls:

  • UR adapters are linked with UMF, there is an implicit dependency already
  • LIB_OBJ_NAME is an OBJECT library, it is not linked to anything and therefore should not have any dependencies except for header files

Ideally, we should not have any add_dependencies calls, but due to dynamic loading mechanisms used everywhere, we need those dependencies set explicitly to ensure that everything is re-built correctly.

This is one patch in a series intended to re-organize
`add_sycl_rt_library` helper function to make it shorter and simpler.

Cleaned up `add_dependencies` calls:
- UR adapters are linked with UMF, there is an implicit dependency
  already
- `LIB_OBJ_NAME` is an `OBJECT` library, it is not linked to anything
  and therefore should not have any dependencies except for header files

Ideally, we should not have any `add_dependencies` calls, but due to
dynamic loading mechanisms used everywhere, we need those dependencies
set explicitly to ensure that everything is re-built correctly.
@AlexeySachkov AlexeySachkov merged commit ddea669 into intel:sycl Mar 12, 2025
32 checks passed
@AlexeySachkov AlexeySachkov deleted the private/asachkov/cmake-cleanup-1 branch March 12, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants