Description
Required prerequisites
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker and Discussions to verify that this hasn't already been reported. +1 or comment there if it has.
- Consider asking first in the Gitter chat room or in a Discussion.
Problem description
after installing version 2.9.2 with vcpkg, I can not compile with cmake.
platform: windows.
the error is:
CMake Error at C:/ext_libs/vcpkg/installed/x64-windows/share/pybind11/pybind11Tools.cmake:132 (set_property):
Property INTERFACE_LINK_LIBRARIES may not contain link-type keyword
"debug". The INTERFACE_LINK_LIBRARIES property may contain
configuration-sensitive generator-expressions which may be used to specify
per-configuration rules.
Reproducible example code
cmake_minimum_required (VERSION 3.8)
set(CMAKE_TOOLCHAIN_FILE "C:/ext_libs/vcpkg/scripts/buildsystems/vcpkg.cmake")
project ("MyProject")
find_package(pybind11 CONFIG REQUIRED)