diff options
author | Martin Storsjo <martin@martin.st> | 2019-10-22 06:36:21 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-10-22 06:36:21 +0000 |
commit | 5205202f41907377b35223fef500f2d5679995c4 (patch) | |
tree | a2a9b9a9d3cac9dd9b13a2356c66562398600fa1 | |
parent | 719615b78fc3d8a27c955e72e3fd9a806b9cd069 (diff) | |
download | llvm-5205202f41907377b35223fef500f2d5679995c4.tar.gz |
[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
-rw-r--r-- | cmake/config-ix.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 4c585b8fd5a..028a2cc86bf 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -474,7 +474,8 @@ if( MSVC ) set(strdup "_strdup") # See if the DIA SDK is available and usable. - set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK") + set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK" CACHE PATH + "Path to the DIA SDK") # Due to a bug in MSVC 2013's installation software, it is possible # for MSVC 2013 to write the DIA SDK into the Visual Studio 2012 |