Skip to content

Fix fxc path for non-Visual Studio builds#670

Merged
walbourn merged 1 commit intomicrosoft:mainfrom
matyalatte:fix_fxc_path
Feb 13, 2026
Merged

Fix fxc path for non-Visual Studio builds#670
walbourn merged 1 commit intomicrosoft:mainfrom
matyalatte:fix_fxc_path

Conversation

@matyalatte
Copy link
Contributor

I found that CMAKE_SYSTEM_VERSION did not have the revision number. This tiny change ensures non-Visual Studio generators (e.g. Ninja) can find fxc without requiring manual environment variable adjustments.

@walbourn
Copy link
Member

Thanks for the feedback. I think the safer thing would be to make it:

HINTS "C:/Program Files (x86)/Windows Kits/10/bin/${CMAKE_SYSTEM_VERSION}/${DIRECTX_HOST_ARCH}"
    "C:/Program Files (x86)/Windows Kits/10/bin/${CMAKE_SYSTEM_VERSION}.0/${DIRECTX_HOST_ARCH}"
    "C:/Program Files (x86)/Windows Kits/10/bin/${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}/${DIRECTX_HOST_ARCH}")

And the same changes should be made in:

https://github.com/microsoft/DirectXTK/blob/main/CMakeLists.txt#L260

https://github.com/microsoft/DirectXTK12/blob/main/CMakeLists.txt#L295
https://github.com/microsoft/DirectXTK12/blob/main/CMakeLists.txt#L300

Would you like to submit PRs for these?

@walbourn walbourn self-assigned this Feb 11, 2026
@walbourn walbourn added the cmake Related to CMake build label Feb 11, 2026
@matyalatte
Copy link
Contributor Author

Thanks for the review. I’ve reverted the removed line.

Would you like to submit PRs for these?

I'll send PRs later.

@walbourn walbourn merged commit 016c186 into microsoft:main Feb 13, 2026
109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake Related to CMake build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants