# How to get pkg-config working inside cmake on appveyor-ci / win10 / msys

**URL:** https://discourse.cmake.org/t/how-to-get-pkg-config-working-inside-cmake-on-appveyor-ci-win10-msys/324
**Category:** Usage
**Tags:** os:windows
**Created:** [December 5, 2019, 1:57pm UTC](https://discourse.cmake.org/t/how-to-get-pkg-config-working-inside-cmake-on-appveyor-ci-win10-msys/324 "2019-12-05T13:57:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shlomif](https://discourse.cmake.org/user_avatar/discourse.cmake.org/shlomif/32/214_2.png) [@shlomif](https://discourse.cmake.org/u/shlomif)
#### Post date: [December 5, 2019, 1:57pm UTC](https://discourse.cmake.org/t/how-to-get-pkg-config-working-inside-cmake-on-appveyor-ci-win10-msys/324/1 "2019-12-05T13:57:46Z")

</div>

I created a cmake-based installer and a mageia linux package for my rinutils library. Now when trying to get the [bhs solver branch](https://github.com/shlomif/black-hole-solitaire/tree/try-rinutils-package) to find “librinutils.pc” it works fine in travis-ci but fails in [appveyor](https://ci.appveyor.com/project/shlomif/black-hole-solitaire) where it uses MS Windows 10 and MSYS - no matter what paths I added to PKG\_CONFIG\_PATH. what should I do?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 15, 2020, 11:07pm UTC](https://discourse.cmake.org/t/how-to-get-pkg-config-working-inside-cmake-on-appveyor-ci-win10-msys/324/2 "2020-02-15T23:07:57Z")

</div>

I suggest trying to get the information out of `pkg-config` directly first. If that can find the information properly, inspecting what `FindPkgConfig` is actually doing and seeing what it isn’t doing properly would be the next step.
