Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Get_Windows_SDK_Root Doesn't work #230

Open
theSoberSobber opened this issue Mar 7, 2024 · 1 comment
Open

[Bug] Get_Windows_SDK_Root Doesn't work #230

theSoberSobber opened this issue Mar 7, 2024 · 1 comment

Comments

@theSoberSobber
Copy link

This is the output of this function
image
image
I have verified that the key exists
image
This is where my cmake comes from
image
This is my compiler configuration
image

  • Things I have tried
    • REGISTRY 64
    • i have also tried running as admin but that doesn't work either

None of these helped 😔
Any help would be appreciated 😔

@pit-ray
Copy link
Owner

pit-ray commented Mar 9, 2024

In win-vind cmake, the path to the WindowsSDK is obtained from the register. Since this is environment-dependent, you can specify WINDOWS_SDK_INCLUDE_DIR and WINDOWS_SDK_LIB_DIR variables directly.

win-vind/CMakeLists.txt

Lines 91 to 99 in 6d7f302

if(NOT WINDOWS_SDK_INCLUDE_DIR)
get_winsdk_include(WINDOWS_SDK_INCLUDE_DIR)
endif()
include_directories(${WINDOWS_SDK_INCLUDE_DIR})
if(NOT WINDOWS_SDK_LIB_DIR)
get_winsdk_lib(WINDOWS_SDK_LIB_DIR)
endif()
link_directories(${WINDOWS_SDK_LIB_DIR})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants