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

cmake can't find a package configuration file #40

Open
victor7543 opened this issue Oct 3, 2021 · 1 comment
Open

cmake can't find a package configuration file #40

victor7543 opened this issue Oct 3, 2021 · 1 comment

Comments

@victor7543
Copy link

I have installed io2d, cairo and graphics magic using vcpkg, and I am using Visual Studio 2019. Cmake gives me this error:

CMake Error at F:/VisualStudio/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package):
Could not find a package configuration file provided by "unofficial-cairo"
with any of the following names:

unofficial-cairoConfig.cmake
unofficial-cairo-config.cmake

Add the installation prefix of "unofficial-cairo" to CMAKE_PREFIX_PATH or
set "unofficial-cairo_DIR" to a directory containing one of the above
files.  If "unofficial-cairo" provides a separate development package or
SDK, be sure it has been installed.

I already specified the location of the CMAKE_TOOLCHAIN_FILE and I have also already integrated vcpkg using the command "vcpkg integrate install".

@theaddies
Copy link

theaddies commented Dec 12, 2021

The instructions are missing one final step.
git clone --recurse-submodules https://github.com/cpp-io2d/P0267_RefImpl
cd P0267_RefImpl
mkdir Debug
cd Debug
cmake --config Debug "-DCMAKE_BUILD_TYPE=Debug" ..
cmake --build .
sudo make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants