Skip to content

Commit

Permalink
CMakePresets: Inherit the VCPKG_ROOT env var for the toolchain path
Browse files Browse the repository at this point in the history
And use C:\vcpkg as default if not defined
  • Loading branch information
julianxhokaxhiu committed Mar 18, 2023
1 parent 50e182c commit 0e743e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
"value": "host=x86",
"strategy": "set"
},
"environment": {
"VCPKG_ROOT": "C:/vcpkg"
},
"binaryDir": "${sourceDir}/.build",
"toolchainFile": "C:/vcpkg/scripts/buildsystems/vcpkg.cmake",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"_DLL_VERSION": "devel",
"CMAKE_C_COMPILER": "cl"
Expand Down

0 comments on commit 0e743e1

Please sign in to comment.