Skip to content

Fix fxc path for non-Visual Studio builds - #670

Merged
Chuck Walbourn (walbourn) merged 1 commit into
microsoft:mainfrom
matyalatte:fix_fxc_path
Feb 13, 2026
Merged

Chuck Walbourn (walbourn) merged 1 commit into
microsoft:mainfrom
matyalatte:fix_fxc_path

Conversation

@matyalatte

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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 Chuck Walbourn (walbourn) added the cmake Related to CMake build label Feb 11, 2026
@matyalatte

Copy link
Copy Markdown
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
Chuck 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