Skip to content

Commit bc56be9

Browse files
authored
[CMake] add another hint for DIASDK (microsoft#6061)
Fail to find DIASDK when using VisualStudio "Open a local folder". Both VS_DIA_INC_PATH and VSWHERE_LATEST are empty. But MSVC_DIA_SDK_DIR is set correctly. Add MSVC_DIA_SDK_DIR/include as hint for DIASDK_INCLUDE_DIR.
1 parent b9c5bec commit bc56be9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/modules/FindDiaSDK.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ find_path(DIASDK_INCLUDE_DIR # Set variable DIASDK_INCLUDE_DIR
2222
dia2.h # Find a path with dia2.h
2323
HINTS "${VS_DIA_INC_PATH}"
2424
HINTS "${VSWHERE_LATEST}/DIA SDK/include"
25+
HINTS "${MSVC_DIA_SDK_DIR}/include"
2526
DOC "path to DIA SDK header files"
2627
)
2728

0 commit comments

Comments
 (0)