-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
pybind11_add_module unexpected error after PR #2368 #2373
Comments
Thanks for reporting, @MonkeyBreaker! I can confirm and reproduce. It it could be related to this change? |
Reproduced with CMake 3.16.3 on
|
I got same problem too . I tried to used cmake to build example code with latest version of pybind11 under win10 and failed.
|
Sorry! I had a typo, and I thought I fixed it before merging, but apparently not. I'm surprised no test caught this. Todo: adjust a test to catch this. (Will close when I have a test that catches this) |
Thanks, once again, @henryiii! :-) |
Great, everything works now fine :) ! Thank you so much for the fix |
Issue description
After integrating latest PR #2368 on our library, building started producing errors:
After looking into the documentation, I could not find the issue, but looking into the PR, I saw that when using
pybind11_add_module
, it explicitly uses the keywordMODULE
, and from what I understood in the documentationI don't know if it isn't any more the case. and now the
MODULE
keyword must be used?Because when I use the keyword
MODULE
everything compiles just fine.I tested
pybind11
before the last merge of #2368 and without using the keywordMODULE
it compiles just fine.Reproducible example code
Maybe I'm crazy but the simple example from the documentation does not work on my machine:
Thank you for the great library,
Julián
The text was updated successfully, but these errors were encountered: