Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find mathglConfig.cmake #28285

Closed
linyuanchang opened this issue Dec 11, 2022 · 4 comments
Closed

Could not find mathglConfig.cmake #28285

linyuanchang opened this issue Dec 11, 2022 · 4 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@linyuanchang
Copy link

I got the following errors when trying to use the package mathgl.

Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
CMake Error at D:/vcpkg/scripts/buildsystems/vcpkg.cmake:843 (_find_package):
  Could not find a package configuration file provided by "mathgl" with any
  of the following names:

    mathglConfig.cmake
    mathgl-config.cmake

  Add the installation prefix of "mathgl" to CMAKE_PREFIX_PATH or set
  "mathgl_DIR" to a directory containing one of the above files.  If "mathgl"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)

But I really find the follow files:

MathGL2Config.cmake
MathGL2Targets.cmake

Is this a bug relate to the version?

@dg0yt
Copy link
Contributor

dg0yt commented Dec 11, 2022

MathGL2Config.cmake create a case-sensitive package name MathGL2, and MathGL should work, too.

(mathgl would work with mathgl2-config.cmake.)

@dg0yt
Copy link
Contributor

dg0yt commented Dec 11, 2022

But there is a port bug, too. The config fixup moves the package to share/mathgl, breaking the MathGL2 variant.
So only one name is left: MathGL.

(Related: #27568)

@dg0yt
Copy link
Contributor

dg0yt commented Dec 11, 2022

Duplicates #22264.

@LilyWangLL
Copy link
Contributor

Fixed by #23811.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants