tdegeus / pybind11_examples

Examples for the usage of "pybind11"
MIT License
633 stars 89 forks source link

Unknown CMake command "pybind11_add_module" #2

Closed RookieCH closed 5 years ago

RookieCH commented 6 years ago

Hi, I've been looked for the resolution from some previous post and have already tried the "git submodule update --init --recursive" However the problem is still there. Is there any chance that I might miss something?

tdegeus commented 6 years ago

It might be that the symbolics links have in some way become invalid? On my system things look as follows:

home ➤ cd /path/to/pybind11_examples

pybind11_examples ➤ ls -l pybind11

total 112
drwxr-xr-x   4 tdegeus  admin   136 May  4  2018 CMakeFiles
-rw-r--r--   1 tdegeus  admin  6371 Sep 19  2017 CMakeLists.txt
-rw-r--r--   1 tdegeus  admin  2584 Jan 26  2018 CONTRIBUTING.md
-rw-r--r--   1 tdegeus  admin  1271 Sep 19  2017 ISSUE_TEMPLATE.md
-rw-r--r--   1 tdegeus  admin  1676 Jan 26  2018 LICENSE
-rw-r--r--   1 tdegeus  admin    81 Sep 19  2017 MANIFEST.in
-rw-r--r--   1 tdegeus  admin  4721 May  4  2018 Makefile
-rw-r--r--   1 tdegeus  admin  5807 Sep 19  2017 README.md
-rw-r--r--   1 tdegeus  admin  1040 May  4  2018 cmake_install.cmake
drwxr-xr-x  26 tdegeus  admin   884 Apr  3  2018 docs
drwxr-xr-x   3 tdegeus  admin   102 Jan 18  2017 include
drwxr-xr-x   5 tdegeus  admin   170 Sep 19  2017 pybind11
-rw-r--r--   1 tdegeus  admin   239 Jan 26  2018 setup.cfg
-rw-r--r--   1 tdegeus  admin  4489 Jan 26  2018 setup.py
drwxr-xr-x  78 tdegeus  admin  2652 Apr  3  2018 tests
drwxr-xr-x  11 tdegeus  admin   374 Jan 26  2018 tools

pybind11_examples ➤ ls -l 01_py-list_cpp-vector

total 680
-rw-r--r--   1 tdegeus  admin   18704 Apr  3  2018 CMakeCache.txt
drwxr-xr-x  15 tdegeus  admin     510 Apr  3  2018 CMakeFiles
-rw-r--r--   1 tdegeus  admin     125 Feb 13  2017 CMakeLists.txt
-rw-r--r--   1 tdegeus  admin    5073 Apr  3  2018 Makefile
-rw-r--r--   1 tdegeus  admin    1639 Apr  3  2018 cmake_install.cmake
-rw-r--r--   1 tdegeus  admin     952 Apr  3  2018 example.cpp
-rwxr-xr-x   1 tdegeus  admin  295040 Apr  3  2018 example.cpython-36m-darwin.so
lrwxr-xr-x   1 tdegeus  admin      11 Feb 13  2017 pybind11 -> ../pybind11
-rw-r--r--   1 tdegeus  admin      69 Apr  3  2018 test.py
tdegeus commented 5 years ago

Closing for now. Assuming that this is fixed.