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] CMP0069 #2406

Closed
rongrong1314 opened this issue Aug 18, 2020 · 2 comments · Fixed by #2370
Closed

[BUG] CMP0069 #2406

rongrong1314 opened this issue Aug 18, 2020 · 2 comments · Fixed by #2370
Assignees

Comments

@rongrong1314
Copy link

Hi, when I using the latest pybind11 master commit in one of my projects, I get the following error:

CMake Error at /opt/cmake-3.10.3-Linux-x86_64/share/cmake-3.10/Modules/CheckIPOSupported.cmake:138 (message):
Policy CMP0069 is not set
Call Stack (most recent call first):
/usr/local/share/cmake/pybind11/pybind11Tools.cmake:189 (check_ipo_supported)
CMakeLists.txt:34 (pybind11_add_module)

My camke version is 3.10, python is 3.8.
I tried to upgrade cmake , but it didn't work.

@henryiii
Copy link
Collaborator

Being fixed in #2370.

@henryiii henryiii changed the title [BUG] [BUG] CMP0069 Aug 18, 2020
@henryiii
Copy link
Collaborator

henryiii commented Aug 18, 2020

By the way, if you increase your CMake polices, this will work without the fix:

cmake_minimum_required(VERSION 3.4...3.18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants