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 | e659fff2fb7203ae949f32b5e50d030738c33f5e (patch) | |
tree | a4d0178de9cc5e8abbe3afa528baa054db52a5ab | |
parent | 4e039e2720f97753b4d5d2c183cbf240c9f1e259 (diff) | |
download | bcm5719-llvm-e659fff2fb7203ae949f32b5e50d030738c33f5e.tar.gz bcm5719-llvm-e659fff2fb7203ae949f32b5e50d030738c33f5e.zip |
[CMake] Allow overriding MSVC_DIA_SDK_DIR via CMake
This eases using it in cross-msvc setups.
Differential Revision: https://reviews.llvm.org/D69239
llvm-svn: 375485
-rw-r--r-- | llvm/cmake/config-ix.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 4c585b8fd5a..028a2cc86bf 100644 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/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 |