Coder Social home page Coder Social logo

Comments (5)

Neumann-A avatar Neumann-A commented on July 3, 2024

On Windows, PkgConfig is not installed by default, and is - as far as I know - impossible to integrate to ninja (the default build tool for Visual Studio and Visual Studio Code). Therefore Cmake throws an error that PkgConfig is not found.

Your knowledge is wrong. Simply depend on port pkgconf cmake should then find pkgconf unless or HOST and TARGET_TRIPLET are different which just requires setting VCPKG_USE_HOST_TOOLS to ON

from vcpkg.

szakeetm avatar szakeetm commented on July 3, 2024

Thank you. I didn't know that PkgConfig can be fulfilled by the port pkgconf
I tested and it builds now on Windows.
May I then suggest to add pkgconf as a dependency of the clipper2 port? Would it maybe break something on non-Windows platforms?

from vcpkg.

Neumann-A avatar Neumann-A commented on July 3, 2024

May I then suggest to add pkgconf as a dependency of the clipper2 port?

It is simply not a dependency of clipper2. It is a dependency for downstream users who want to use clipper via pkg-config. Alternative you could write a FindClipper2.cmake module which uses find_library.

Would it maybe break something on non-Windows platforms?

Using manifest mode you can make the dependency on pkgconf platform dependent.

from vcpkg.

szakeetm avatar szakeetm commented on July 3, 2024

Thank you, I close the issue.

from vcpkg.

dg0yt avatar dg0yt commented on July 3, 2024

PkgConfig is ... impossible to integrate to ninja (the default build tool for Visual Studio and Visual Studio Code).

CMake's FindPkgConfig.cmake is not prepared for multi-config generators.

from vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.