Skip to content

Commit 5205202

Browse files
committed
[CMake] Allow overriding MSVC_DIA_SDK_DIR via CMake
This eases using it in cross-msvc setups. Differential Revision: https://reviews.llvm.org/D69239 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375485 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 719615b commit 5205202

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/config-ix.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ if( MSVC )
474474
set(strdup "_strdup")
475475

476476
# See if the DIA SDK is available and usable.
477-
set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK")
477+
set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK" CACHE PATH
478+
"Path to the DIA SDK")
478479

479480
# Due to a bug in MSVC 2013's installation software, it is possible
480481
# for MSVC 2013 to write the DIA SDK into the Visual Studio 2012

0 commit comments

Comments
 (0)