[BUG]: The main repository and submodule both have source code dependencies on the usage of pybind11

オープン
#5,521 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cmake, cpp
領域
build-system

調査の方向性

リンクされている test_pybind11 リポジトリから始め、メインの CMakeLists.txt と test_pybind11/third-party/pybind11/tools/pybind11Tools.cmake、およびネストされたサブモジュールのコピーを調べてください。cmake .. と make を使ったクリーンなビルドから再現し、その後、メインコピーのツールファイルを削除した場合に、どの pybind11_add_module 定義が選択されるかを確認してください。

索引モデルが issue の本文から書いたものです。

説明

triage
Required prerequisites
What version (or hash if on master) of pybind11 are you using?

stable branches

Problem description

Reproduce by files uploading

Problem

When the main repo and the submodule repo also depends the pybind11 in source code way, the command pybind11_add_module in cmakelists.txt of main repo will

  • use the function defined in test_pybind11/third-party/sub/third-party/pybind11/tools/pybind11Tools.cmake
  • not the expected definition in test_pybind11/third-party/pybind11/tools/pybind11Tools.cmake

How to proof this problem is exist?

I have deleted this two files the pybind11 in test_pybind11/third-party/pybind11:

deleted:    tools/pybind11NewTools.cmake
deleted:    tools/pybind11Tools.cmake

But I still can build the repo successfully by

mkdir build
cd build
cmake ..
make
Reproducible example code
code is here: https://github.com/HRXWEB/test_pybind11
Is this a regression? Put the last known working version here if it is.

Not a regression

主要言語
C++
スター
18k
フォーク
2.3k
平均マージ
5日 7時間
マージ済み PR(30日)
53

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pybind/pybind11 のほかの issue

pybind/pybind11 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。