Skip to content

Commit

Permalink
Add hint for vcpkg.json manifest mode
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Aug 23, 2024
1 parent cd0657c commit 93b6666
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ if(NOT USE_PREBUILT_SHADERS)
message(STATUS "Using VCPKG for DirectXShaderCompiler (${VCPKG_HOST_TRIPLET}).")
find_program(DIRECTX_DXC_TOOL DXC.EXE

Check failure on line 253 in CMakeLists.txt

View workflow job for this annotation

GitHub Actions / build (windows-2019, x64-Debug-VCPKG, amd64)

Could not find DIRECTX_DXC_TOOL using the following names: DXC.EXE

Check failure on line 253 in CMakeLists.txt

View workflow job for this annotation

GitHub Actions / build (windows-2022, x64-Debug-VCPKG, amd64)

Could not find DIRECTX_DXC_TOOL using the following names: DXC.EXE

Check failure on line 253 in CMakeLists.txt

View workflow job for this annotation

GitHub Actions / build (windows-2022, x64-Debug-Clang-VCPKG, amd64)

Could not find DIRECTX_DXC_TOOL using the following names: DXC.EXE

Check failure on line 253 in CMakeLists.txt

View workflow job for this annotation

GitHub Actions / build (windows-2022, x86-Debug-VCPKG, amd64_x86)

Could not find DIRECTX_DXC_TOOL using the following names: DXC.EXE

Check failure on line 253 in CMakeLists.txt

View workflow job for this annotation

GitHub Actions / build (windows-2022, arm64-Debug-VCPKG, amd64_arm64)

Could not find DIRECTX_DXC_TOOL using the following names: DXC.EXE
REQUIRED NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH NO_DEFAULT_PATH
HINTS ${DIRECTX_DXC_PATH})
HINTS ${DIRECTX_DXC_PATH}
"${CMAKE_CURRENT_LIST_DIR}/build/vcpkg_installed/${VCPKG_HOST_TRIPLET}/tools/directx-dxc")
endif()
add_custom_command(
OUTPUT "${COMPILED_SHADERS}/SpriteEffect_SpriteVertexShader.inc"
Expand Down
10 changes: 5 additions & 5 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows",
"VCPKG_HOST_TRIPLET": "x64-windows",
"DIRECTX_DXC_PATH": "build/vcpkg_installed/x64-windows/tools/directx-dxc"
"DIRECTX_DXC_PATH": "$env{VCPKG_ROOT}/installed/x64-windows/tools/directx-dxc"
}
},
{
Expand All @@ -159,7 +159,7 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x86-windows",
"VCPKG_HOST_TRIPLET": "x64-windows",
"DIRECTX_DXC_PATH": "build/vcpkg_installed/x64-windows/tools/directx-dxc"
"DIRECTX_DXC_PATH": "$env{VCPKG_ROOT}/installed/x64-windows/tools/directx-dxc"
}
},
{
Expand All @@ -168,7 +168,7 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-windows",
"VCPKG_HOST_TRIPLET": "x64-windows",
"DIRECTX_DXC_PATH": "build/vcpkg_installed/x64-windows/tools/directx-dxc"
"DIRECTX_DXC_PATH": "$env{VCPKG_ROOT}/installed/x64-windows/tools/directx-dxc"
}
},
{
Expand All @@ -177,7 +177,7 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64ec-windows",
"VCPKG_HOST_TRIPLET": "x64-windows",
"DIRECTX_DXC_PATH": "build/vcpkg_installed/x64-windows/tools/directx-dxc"
"DIRECTX_DXC_PATH": "$env{VCPKG_ROOT}/installed/x64-windows/tools/directx-dxc"
}
},
{
Expand All @@ -186,7 +186,7 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-windows",
"VCPKG_HOST_TRIPLET": "arm64-windows",
"DIRECTX_DXC_PATH": "build/vcpkg_installed/x64-windows/tools/directx-dxc"
"DIRECTX_DXC_PATH": "$env{VCPKG_ROOT}/installed/arm64-windows/tools/directx-dxc"
}
},
{
Expand Down

0 comments on commit 93b6666

Please sign in to comment.