Closed lx-1234 closed 1 year ago
You need cmake ../my/project -DCMAKE_TOOLCHAIN_FILE=[vcpkg-root]/scripts/buildsystems/vcpkg.cmake
.
You need
cmake ../my/project -DCMAKE_TOOLCHAIN_FILE=[vcpkg-root]/scripts/buildsystems/vcpkg.cmake
.
Thanks for your quick reply. I compile the project on Windows using VS code. And I add
"cmake.configureSettings": {
"CMAKE_TOOLCHAIN_FILE": "D:/src/vcpkg/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md"
}
But it doesn't work.
One thing that tripped me was that when you specify the flags to CMake, you need to write -DVCPKG_TARGET_TRIPLET=x64-windows-static-md
instead of -DVCPKG_TARGET_TRIPLET="x64-windows-static-md"
(so no quotes). Otherwise it won't work. I'm not sure what happens when you write as you did. I tried using
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake",
"-DVCPKG_TARGET_TRIPLET=x64-windows-static-md",
"-DAPSI_BUILD_TESTS=ON",
"-DAPSI_BUILD_CLI=ON"
],
and it seems to work.
Yes -- there is definitely a mistake/bug in the README.md. I'll fix that shortly.
Hello, I also encountered this problem, how to solve it?
I have installed SEAL using vcpkg. But when I try to compile APSI, I meet an error as following.
I try to add "-DCMAKE_PREFIX_PATH=D:\src\vcpkg\packages" , but it doesn't work.
How can i fix it? Thx.