# windows sdk find error

**URL:** https://discourse.cmake.org/t/windows-sdk-find-error/9839
**Category:** Usage
**Tags:** os:windows
**Created:** [January 12, 2024, 9:04am UTC](https://discourse.cmake.org/t/windows-sdk-find-error/9839 "2024-01-12T09:04:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wayne](https://discourse.cmake.org/user_avatar/discourse.cmake.org/wayne/32/4155_2.png) [@wayne](https://discourse.cmake.org/u/wayne)
#### Post date: [January 12, 2024, 9:04am UTC](https://discourse.cmake.org/t/windows-sdk-find-error/9839/1 "2024-01-12T09:04:41Z")

</div>

I have been using msquic as a submodule to enable quic feature. I simply use cmake cmd `add_subdirectory` and `target_link_libraries` to use quic lib in linux, they works fine.

When it comes to windows, the msvc compiler keeps telling that it can’t find some functions and variables in WinSDK. (I am using vscode with powershell)  
But I can compiler msquic separately and run the quic sample which indicates WinSDK is installed and is available for cmake and msvc.

I think it’s more likely a cmake thing, what cmake do in the upper layer of the quic that may cause this issue? any hint will be appreciated. Thank you!
