Skip to content

[SYCL][CUDA] Fix CMake warning #1301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2020

Conversation

bjoernknafla
Copy link
Contributor

Stop calling target_link_libraries for a target from a different scope/
directory.

Fixes CMake warning:

-- Including the PI API CUDA backend.
CMake Warning (dev) at /home/bjoern/Dev/stateray/wip/llvm/sycl/plugins/cuda/CMakeLists.txt:39 (target_link_libraries):
  Policy CMP0079 is not set: target_link_libraries allows use with targets in
  other directories.  Run "cmake --help-policy CMP0079" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target

    sycl

  is not created in this directory.  For compatibility with older versions of
  CMake, link library

    pi_cuda

  will be looked up in the directory in which the target was created rather
  than in this calling directory.
This warning is for project developers.  Use -Wno-dev to suppress it.

Signed-off-by: Bjoern Knafla [email protected]

Stop calling target_link_libraries for a target from a different scope/
directory.

Fixes CMake warning:
```sh
-- Including the PI API CUDA backend.
CMake Warning (dev) at /home/bjoern/Dev/stateray/wip/llvm/sycl/plugins/cuda/CMakeLists.txt:39 (target_link_libraries):
  Policy CMP0079 is not set: target_link_libraries allows use with targets in
  other directories.  Run "cmake --help-policy CMP0079" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target

    sycl

  is not created in this directory.  For compatibility with older versions of
  CMake, link library

    pi_cuda

  will be looked up in the directory in which the target was created rather
  than in this calling directory.
This warning is for project developers.  Use -Wno-dev to suppress it.
```

Signed-off-by: Bjoern Knafla <[email protected]>
@bader bader requested a review from vladimirlaz March 12, 2020 22:23
@bader bader added the cuda CUDA back-end label Mar 12, 2020
Copy link
Contributor

@alexbatashev alexbatashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bader bader merged commit 52a63fa into intel:sycl Mar 13, 2020
@bjoernknafla bjoernknafla deleted the bjoern/fix-cmake-warnings branch May 7, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants