I'm following the official guide. It does not work for any library. I have tried skia and unofficial-skia. I am using clang on windows.
Error:
[main] Configuring project: project
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_TOOLCHAIN_FILE=C:/Users/PC/Desktop/Forks/vcpkg/scripts/buildsystems/vcpkg.cmake -SC:/Users/PC/Desktop/Experiments/project -BC:/Users/PC/Desktop/Experiments/project/build -G Ninja
[cmake] CMake Error at CMakeLists.txt:6 (find_package):
[cmake] Could not find a package configuration file provided by "unofficial-skia"
[cmake] with any of the following names:
[cmake]
[cmake] unofficial-skiaConfig.cmake
[cmake] unofficial-skia-config.cmake
[cmake]
[cmake] Add the installation prefix of "unofficial-skia" to CMAKE_PREFIX_PATH or
[cmake] set "unofficial-skia_DIR" to a directory containing one of the above files.
[cmake] If "unofficial-skia" provides a separate development package or SDK, be
[cmake] sure it has been installed.
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_TOOLCHAIN_FILE=C:/Users/PC/Desktop/Forks/vcpkg/scripts/buildsystems/vcpkg.cmake -SC:/Users/PC/Desktop/Experiments/project -BC:/Users/PC/Desktop/Experiments/project/build -G Ninja exited with code: 1
CMakeLists.txt (error on find_package
line):
cmake_minimum_required(VERSION 3.10)
project(HelloWorld)
set(CMAKE_CXX_STANDARD 23)
find_package(unofficial-skia CONFIG REQUIRED)
add_executable(HelloWorld helloworld.cpp)