EVerest / meta-everest

openembedded layer for everest
Apache License 2.0
6 stars 5 forks source link

everest-framwork fails to build when `/usr/include/python3.11` does not exist #40

Open catarial opened 1 month ago

catarial commented 1 month ago

While building everest-framework in version 2024.9.0-rc3, pybind11_json fails to configure due to the directory /usr/include/python3.11 not existing. I was able to get around this by just creating an empty directory there.

I'm using the kas-container from https://github.com/siemens/kas as my build environment

This is being caused by this variable in the pybind11_json CMakeLists.txt

target_include_directories(${PROJECT_NAME}
                           INTERFACE
                           ${PYTHON_INCLUDE_DIRS}
                           $<BUILD_INTERFACE:${PYBIND11_JSON_INCLUDE_DIR}>
                           $<INSTALL_INTERFACE:include>)