# find\_package error: The following configuration files were considered but not accepted - what does it mean?

**URL:** https://discourse.cmake.org/t/find-package-error-the-following-configuration-files-were-considered-but-not-accepted-what-does-it-mean/5003
**Category:** Usage
**Created:** [February 14, 2022, 5:02pm UTC](https://discourse.cmake.org/t/find-package-error-the-following-configuration-files-were-considered-but-not-accepted-what-does-it-mean/5003 "2022-02-14T17:02:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan\_Lang](https://discourse.cmake.org/user_avatar/discourse.cmake.org/stefan_lang/32/2180_2.png) [@Stefan\_Lang](https://discourse.cmake.org/u/Stefan_Lang)
#### Post date: [February 14, 2022, 5:02pm UTC](https://discourse.cmake.org/t/find-package-error-the-following-configuration-files-were-considered-but-not-accepted-what-does-it-mean/5003/1 "2022-02-14T17:02:47Z")

</div>

I’m trying to build some open source libs on Windows using cmake-gui and running into several cmake errors where find\_package does find a {package}-config.cmake file, but fails to accept it! I’m at a loss what to do now. Here’s an example of the error message:

_CMake Error at CMakeLists.txt:44 (find\_package):_  
_Could not find a configuration file for package “freetype” that is_  
_compatible with requested version “”._

_The following configuration files were considered but not accepted:_

_D:/OpenCascade/3rdparty/freetype2/lib/cmake/freetype/freetype-config.cmake, version: 2.11.1 (64bit)_

The problem is that I have no idea why this file is not accepted, and therefore I’m stuck. How can I proceed? How can I resolve this error?

---

<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 14, 2022, 5:23pm UTC](https://discourse.cmake.org/t/find-package-error-the-following-configuration-files-were-considered-but-not-accepted-what-does-it-mean/5003/2 "2022-02-14T17:23:39Z")

</div>

I suspect that your freetype is 64bit (as indicated), but you missed selecting 64bit as the target for your build trying to use it. There is also the `--debug-find` flag (from the command line; I don’t know if the GUI has a way to use that flag) that can help get more information.

---

<div class="post-metadata">

### Author: ![Stefan\_Lang](https://discourse.cmake.org/user_avatar/discourse.cmake.org/stefan_lang/32/2180_2.png) [@Stefan\_Lang](https://discourse.cmake.org/u/Stefan_Lang)
#### Post date: [February 14, 2022, 5:48pm UTC](https://discourse.cmake.org/t/find-package-error-the-following-configuration-files-were-considered-but-not-accepted-what-does-it-mean/5003/3 "2022-02-14T17:48:44Z")

</div>

Thanks for the hint. I checked some things to make sure that everything is set to x64, but then I noticed that the emscripten target is set to x86! Some more googling indicated that there appears to be no 64 bit compiler for emscripten (web assembly). That means I’ll have to rebuild everything for x86… ☹

Now I’m wondering how to set the build target to x86: cmake-gui does not show any build target, so I assume the default is x64. I guess I’ll find out eventually, but if someone reads this within the next half hour I would appreciate a tip.

---

<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 14, 2022, 6:07pm UTC](https://discourse.cmake.org/t/find-package-error-the-following-configuration-files-were-considered-but-not-accepted-what-does-it-mean/5003/4 "2022-02-14T18:07:32Z")

</div>

There’s a “toolset”, “toolchain”, or “architecture” selector in the GUI IIRC.
