Skip to content

[BUG]: Compiling in windows after installing with vcpkg #3891

Description

@dvirneuman

Required prerequisites

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triageNew bug, unverified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions