pybind11/tools
László Papp 5891867ee4
fix(cmake): support DEBUG_POSTFIX correctly (#4761)
* cmake: split extension

Into suffix and debug postfix. Pybind11 is currently treating both as
suffix, which is problematic when something else defines the
DEBUG_POSTFIX because they will be concatenated.

pybind11_extension sets SUFFIX to _d.something and if DEBUG_POSTFIX is
set to _d.

    _d + _d.something = _d_d.something

The issue has been reported at:

https://github.com/pybind/pybind11/issues/4699

* style: pre-commit fixes

* fix(cmake): support postfix for old FindPythonInterp mode too

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

---------

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
2023-09-15 18:05:43 -04:00
..
check-style.sh Add shellcheck style checking (#3114) 2021-07-14 16:52:13 -04:00
cmake_uninstall.cmake.in format: include .in files 2020-08-06 11:54:41 -04:00
codespell_ignore_lines_from_errors.py chore: move to Ruff and add rules (#4483) 2023-02-22 06:18:55 -08:00
FindCatch.cmake Revert "Go back to CMake 3.25.2 (#4496)" (#4503) 2023-02-16 10:54:57 -05:00
FindEigen3.cmake style: avoid using unintialized variables (#2806) 2021-01-19 18:48:22 -05:00
FindPythonLibsNew.cmake fix(cmake): support DEBUG_POSTFIX correctly (#4761) 2023-09-15 18:05:43 -04:00
JoinPaths.cmake feat(cmake): add installation support for pkg-config dependency detection (#4077) 2022-08-09 00:02:45 -04:00
libsize.py chore: drop Python 3.5 (#3719) 2022-02-11 19:06:16 -05:00
make_changelog.py chore: prepare for 2.10.3 (#4437) 2023-01-03 11:34:22 -05:00
pybind11.pc.in feat(cmake): add installation support for pkg-config dependency detection (#4077) 2022-08-09 00:02:45 -04:00
pybind11Common.cmake fix: support CMake 3.27, drop 3.4 (#4719) 2023-07-12 13:10:24 -05:00
pybind11Config.cmake.in fix: support CMake 3.27, drop 3.4 (#4719) 2023-07-12 13:10:24 -05:00
pybind11NewTools.cmake fix(cmake): support DEBUG_POSTFIX correctly (#4761) 2023-09-15 18:05:43 -04:00
pybind11Tools.cmake fix(cmake): support DEBUG_POSTFIX correctly (#4761) 2023-09-15 18:05:43 -04:00
pyproject.toml ci: releases (#2530) 2020-09-30 15:48:08 -04:00
setup_global.py.in First draft of Eigen::Tensor support (#4201) 2022-10-18 16:54:16 -07:00
setup_main.py.in Revert "feat: add entrypoint for cmake modules dir" (#4270) 2022-10-21 17:25:53 -04:00