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

Python bindings fail to build: Unknown CMake command "python3_add_library" #612

Closed
yurivict opened this issue Jun 4, 2021 · 2 comments
Closed

Comments

@yurivict
Copy link
Contributor

yurivict commented Jun 4, 2021

Avogadro version: (please complete the following information from the About box):

  • Avogadrolibs: 1.94.0

Desktop version: (please complete the following information):

  • OS: FreeBSD 13
  • Compiler clang-11

Describe the bug

-- Found pybind11: /usr/local/include (found version "2.6.2" )
CMake Error at /usr/local/share/cmake/pybind11/pybind11NewTools.cmake:196 (python3_add_library):
  Unknown CMake command "python3_add_library".
Call Stack (most recent call first):
  CMakeLists.txt:38 (pybind11_add_module)

FindPython3 documentation (https://cmake.org/cmake/help/latest/module/FindPython3.html) says that it defines Python3_add_library, but you only call find_package(Python3 REQUIRED).

@yurivict yurivict closed this as completed Jun 4, 2021
@BeatWolf
Copy link

How was this solved?

@yurivict
Copy link
Contributor Author

Sorry, I don't remember.

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

No branches or pull requests

2 participants