Skip to content
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

[BUG]: Policy CMP0141 is not known to CMake<3.25 #1919

Closed
1 task done
phernst opened this issue Jun 26, 2024 · 1 comment · Fixed by #1924
Closed
1 task done

[BUG]: Policy CMP0141 is not known to CMake<3.25 #1919

phernst opened this issue Jun 26, 2024 · 1 comment · Fixed by #1924
Assignees
Labels
bug Something isn't working right.

Comments

@phernst
Copy link

phernst commented Jun 26, 2024

Is this a duplicate?

Type of Bug

Something else

Component

Not sure

Describe the bug

Using CCCL with MSVC and CMake<3.25 produces the following error during CMake configuration:

CMake Error at cccl/CMakeLists.txt:7 (cmake_policy):
  Policy "CMP0141" is not known to this version of CMake.

My CMake version is 3.22, so I believe this also affects the developer build.

How to Reproduce

  1. clone the CCCL repo into some CMake project
  2. add CCCL to the CMake project using add_subdirectory
  3. try to configure the project

Expected behavior

The configuration step of the CMake project should work without producing this error.

Reproduction link

No response

Operating System

Windows 10 Pro

nvidia-smi output

No response

NVCC version

No response

@phernst phernst added the bug Something isn't working right. label Jun 26, 2024
@jrhemstad
Copy link
Collaborator

@alliepiper could you take a look at this?

alliepiper added a commit to alliepiper/cccl that referenced this issue Jun 28, 2024
miscco pushed a commit that referenced this issue Jul 4, 2024
#1924)

* Check that the current version of CMake supports policy 141 before setting it.

Fixes #1919

* Use if(POLICY ...) to test if the CMake policy is known.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants